Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit e6e1719

Browse files
committed
Added request url to the reqHash
1 parent d3d0e78 commit e6e1719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/catalog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default ({config, db}) => function (req, res, body) {
102102
};
103103
}
104104
const s = Date.now()
105-
const reqHash = sha3_224(JSON.stringify(requestBody))
105+
const reqHash = sha3_224(`${JSON.stringify(requestBody)}${req.url}`)
106106
const dynamicRequestHandler = () => {
107107
request({ // do the elasticsearch request
108108
uri: url,

0 commit comments

Comments
 (0)