Skip to content

Commit

Permalink
Fix Express Request Paths (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: Ninad Sinha <[email protected]>
  • Loading branch information
akshay288 and AHarmlessPyro authored Nov 11, 2022
1 parent a6f37c9 commit b14a093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ingestors/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metlo",
"version": "0.0.10",
"version": "0.0.11",
"license": "MIT",
"description": "The node agent for Metlo API Security.",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion ingestors/node/src/modules/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function initialize({ key, host, pool }) {
request: {
url: {
host: _req.socket.remoteAddress,
path: _req.route.path,
path: _req.baseUrl + _req.url,
parameters: Object.entries(_req.query).map(([k, v]) => ({ name: k, value: v })),
},
headers: Object.entries(_req.headers).map(([k, v]) => ({ name: k, value: v })),
Expand Down

0 comments on commit b14a093

Please sign in to comment.