Skip to content

Commit

Permalink
feat: add headers to request object
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 14, 2022
1 parent fd05675 commit 48cb3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factories/createFastifyLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export const createFastifyLogger = (Roarr: Logger, configuration?: Configuration

if (req) {
newContext.request = {
headers: req.headers,
hostname: req.hostname,
method: req.method,
remoteAddress: req.ip,
remotePort: req.socket?.remotePort,
url: req.url,
version: req.headers?.['accept-version'],
};
}

Expand Down

0 comments on commit 48cb3d7

Please sign in to comment.