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

Set FlushInterval when initializing httputil.ReverseProxy #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edvakf
Copy link

@edvakf edvakf commented Nov 19, 2014

Due to httputil.ReverseProxy's buffering behavior, I have to wait before HTTP 1.1 Transfer-Encoding: chunked response to start being sent. Setting FlushInterval to httputil.ReverseProxy solves this issue.

Hard-coding the flush interval of 500ms may be arguable.

Note: due to martini-contrib/oauth2's incompatible changes, this branch can't be merged to current master...

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.

1 participant