-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serialize headers (renamed header to headers) #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Readme should be updated as well if this PR is a resolution. |
017313f
to
e09a03e
Compare
@jsumners Agreed. Just updated PR!
|
Readme.md
Outdated
@@ -70,7 +70,7 @@ The default `response` serializer. Returns an object: | |||
```js | |||
{ | |||
statusCode: Number, | |||
header: Array, // The list of headers to be sent in the response. | |||
header: Object, // The headers to be sent in the response. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be headers:
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcollina good catch 😀, can update the PR tmrw.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated to PR now.
e09a03e
to
e4241cc
Compare
Just updated Readme in PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Currently headers are not sent when logging a http response.
currently returns
This
PR
makes sure that "headers" are sent instead of "header".Also added a test 😄