-
Notifications
You must be signed in to change notification settings - Fork 20
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
Pull all required headers to be signed. #134
Conversation
Related to S3 open issue scality/cloudserver#120 :) |
Object.assign(request.headers, request._headers); | ||
const signedHeaders = Object.keys(request._headers) | ||
.filter(headerName => | ||
headerName.startsWith('x-amz-') || headerName.startsWith('x-scal') |
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.
x-amz
is enought since it's x-amz-scal
for custom headers :)
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 include both in the required headers test in case x-scal headers are created later.
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.
why not :)
two minor comments :) 👍 |
f460fbc
to
201f54d
Compare
201f54d
to
18d657b
Compare
@DavidPineauScality and @AntoninCoulibaly, note this has a small impact on #119 |
5035dd4
to
18d657b
Compare
end to end passed http://ci.ironmann.io/gh/scality/Integration/2545 |
LGTM 👍 |
Fixes scality/cloudserver#120