Skip to content

Commit

Permalink
Merge pull request #1 from gajus/gajus/add-headers
Browse files Browse the repository at this point in the history
feat: add headers to request object
  • Loading branch information
gajus committed Nov 14, 2022
2 parents fd05675 + 48cb3d7 commit a27a9e4
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 a27a9e4

Please sign in to comment.