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

Update ExecuteFunction.cs #13

Merged
merged 1 commit into from
Jan 4, 2022
Merged

Update ExecuteFunction.cs #13

merged 1 commit into from
Jan 4, 2022

Conversation

JayZuo
Copy link
Contributor

@JayZuo JayZuo commented Dec 16, 2021

Update CompressResponseBody method to fix issue #12

In some cases, Unity will set Accept-Encoding to "deflate, gzip" automatically. In this scenario, ExecuteFunction will return ​compressed response body. However, it doesn't set corresponding Content-Encoding header, so Unity won't decompress the response body, which caused the response body to be an unreadable sting that can't be deserialized. And eventually, Unity SDK throws an "Invalid JSON string" error.

This PR is trying to fix this issue.

@MGudgin MGudgin merged commit abe2480 into PlayFab:main Jan 4, 2022
@JayZuo JayZuo deleted the patch-1 branch January 5, 2022 01:30
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