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

Accept-Encoding gzip not working #108

Open
ghost opened this issue Mar 27, 2018 · 1 comment
Open

Accept-Encoding gzip not working #108

ghost opened this issue Mar 27, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 27, 2018

We have an API that uses the Invoke policy to make a call out to a Bluemix Cloudant database. Recently that API was updated to return gzip encoded data, this caused our code in the microgateway to fail. After the Invoke policy we have a Javascript policy and our reference to message.body.id now fails.

To workaround this we now use a Set-Variable policy to set request.headers.accept-encoding to gzip;q=0 and now our Javascript policy code works again.

Should the Invoke policy support data returned compressed?
What is the IBM best practice for this? I am sure it is not to disable compression like we did.

Thanks in advance

@ozairs
Copy link
Collaborator

ozairs commented Apr 10, 2018

Sorry for the late reply ... will follow up with our Development team.

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

No branches or pull requests

1 participant