Skip to content

Commit

Permalink
update node agent - fastify (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay288 authored Nov 16, 2022
1 parent b930e9a commit a460fdc
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.11",
"version": "0.0.12",
"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/fastify.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function initialize({ key, host, pool }) {
request: {
url: {
host: request.raw.socket.remoteAddress,
path: request.routerPath,
path: request.url.split("?")[0],
parameters: Object.entries(request.query).map(([k, v]) => ({ name: k, value: v })),
},
headers: Object.entries(request.headers).map(([k, v]) => ({ name: k, value: v })),
Expand Down

0 comments on commit a460fdc

Please sign in to comment.