-
Notifications
You must be signed in to change notification settings - Fork 13
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
Decoding Gzipped Content #148
Comments
This should not be actually needed. Assuming you are using node.js, request package would transparently handle gzip decoding for you. Be sure Eureka server is providing the valid HTTP hader gzip response. |
Eureka server is overriding the response header content-encoding. that's what i rely on while parsing the response
That's why I also assumed, but either that's not happening, or i'm missing something very obvious. |
I'm facing the same problem right now with Eureka. I even attempted to gunzip the content within my middleware but the res.body is already a string when it gets to the middleware and there's no property/accessor to get the raw data sent from the remote server |
@rahulmamgain, I'd just remove the console.log from that file so it is one less obstacle for this pull request to be accepted |
While working with the latest eureka server. I'm running the following docker image docker image
The setup is as following
The basic code is below
The problem I face is when the response is Gzipped from the eureka server hence can not be parsed directly as xml.
I did try different options but none worked for me, As a final solution I had to edit http.js
https://github.com/resilient-http/resilient.js/pull/147/files
this seems to work well.
My two questions are
Thanks
The text was updated successfully, but these errors were encountered: