Skip to content

Conversation

@koffeinfrei
Copy link
Contributor

The headers weren't actually set previously. The statement headers = res_headers doesn't have any effect, since it only creates a local variable. The correct statement would look like headers res_headers (i.e. call the method headers).

I changed the code to use the return triplet [status, headers, response body] though which is the recommended way (see http://sinatrarb.com/intro.html).

@derek derek bot added the new-contributor label Oct 6, 2019
@derek
Copy link

derek bot commented Oct 6, 2019

Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide.
Tip: if you only have one commit so far then run: git commit --amend --signoff and then git push --force.

@derek derek bot added the no-dco label Oct 6, 2019
@koffeinfrei koffeinfrei force-pushed the fix/set-headers-in-sinatra branch from 6a899ee to 64ca2b8 Compare October 6, 2019 08:50
@derek derek bot removed the no-dco label Oct 6, 2019
The headers weren't actually set previously.
The statement `headers = res_headers` doesn't have any effect, since it
only creates a local variable.

Signed-off-by: Alexis Reigel <mail@koffeinfrei.org>
@koffeinfrei
Copy link
Contributor Author

Closing this one as the change is included in #9.

@koffeinfrei koffeinfrei deleted the fix/set-headers-in-sinatra branch October 13, 2019 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant