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

#63 fixed #67

Closed
wants to merge 2 commits into from
Closed

#63 fixed #67

wants to merge 2 commits into from

Conversation

Web-Distortion
Copy link
Contributor

No description provided.

proxy/proxy.go Outdated
rw := newResponseWriter(w)
rr := newResponseReader(resp)
err = p.proxyResponse(rw, rr, r.Header)
err = p.proxyResponse(rw, rr, r.Header, source_type)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proxyResponse takes four arguments and this fails in CI. Is this PR complete?

Also how does this work now that we have read resp.Body? Is it OK to read the stream again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's OK to read resp.Body again, however it will be slower than read only once. Actually I'm not familiar with golang, is there a better option to complete it?

[fix] set the "content-type" response header instead of passing it to the proxyResponse function
@gaul
Copy link
Collaborator

gaul commented Mar 12, 2022

@Web-Distortion is this PR still valid? Can you rebase it if so?

@Web-Distortion
Copy link
Contributor Author

This PR has been discarded and I will close it soon.

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.

None yet

2 participants