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

Support gzip content encoding #359

Merged
merged 1 commit into from
Sep 24, 2019
Merged

Conversation

stokarenko
Copy link
Contributor

Nothing special, just adding ::FaradayMiddleware::Gzip Faraday middleware in order to take an advantage of Gzipped response body )

@stokarenko
Copy link
Contributor Author

@gaorlov Hi again )

Is there a chance to merge this? )

@gaorlov
Copy link
Collaborator

gaorlov commented Sep 23, 2019

Absolutely! I'll have it out by end of day tomorrow! Thanks for the work!

@stokarenko
Copy link
Contributor Author

stokarenko commented Sep 24, 2019

FYI regarding to server side - default router (dokku, k8s etc) will not Gzip JSON-API responses because of custom application/vnd.api+json mime type which differs from supported by default application/json one. Typically it's needed to apply some Ops efforts before you will see Gzipping in action )

@stokarenko
Copy link
Contributor Author

Probably we can add this hint in readme )

@gaorlov gaorlov merged commit a2c2fb4 into JsonApiClient:master Sep 24, 2019
@gaorlov
Copy link
Collaborator

gaorlov commented Sep 24, 2019

@stokarenko 1.16.0 is now live. Sorry about the delay and thanks once again for your hard work!

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.

2 participants