Skip to content
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

Fix incorrect header serialization in streamed responses #73

Merged
merged 1 commit into from
Mar 26, 2018

Conversation

voikya
Copy link
Contributor

@voikya voikya commented Mar 12, 2018

Fixes an incorrect header serialization in streamed responses (when
@streaming is true); the return value from
HttpStreamingResponse.headers consists of arrays of strings rather
than plain strings, which in turn causes Rack to fail.

Since Rack::Proxy already has a helper to normalize this, this change
ensures it always gets called.

This resolves issue #65 .

Fixes an incorrect header serialization in streamed responses (when
`@streaming` is true); the return value from
`HttpStreamingResponse.headers` consists of arrays of strings rather
than plain strings, which in turn causes Rack to fail.

Since `Rack::Proxy` already has a helper to normalize this, this change
ensures it always gets called.
@joevandyk
Copy link

@ncr can this get merged?

@ncr ncr merged commit 8056fb7 into ncr:master Mar 26, 2018
@ncr
Copy link
Owner

ncr commented Mar 26, 2018

I’ll release a new gem tomorrow. If not, ping me please :)

@joevandyk
Copy link

Awesome, thanks! Just ran into a problem where I was POSTing to a rack-proxy URL that had streaming enabled, and the browser was downloading the response as a file. Turning streaming off fixed the issue. I'm assuming this PR fixes the problem?

@ncr
Copy link
Owner

ncr commented Mar 26, 2018 via email

@voikya
Copy link
Contributor Author

voikya commented Sep 14, 2018

@ncr did you ever release the new gem version? I'm not seeing it on rubygems.

@ncr
Copy link
Owner

ncr commented Sep 17, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants