FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(android): ignore gzip content-encoding for 204 status code by lochstar · Pull Request #7417 · NativeScript/NativeScript · GitHub

fix(android): ignore gzip content-encoding for 204 status code - #7417

Merged
manoldonev merged 2 commits into
NativeScript:masterfrom
lochstar:android-204-status-gzip-fix
Jun 28, 2019
Merged

manoldonev merged 2 commits into
NativeScript:masterfrom
lochstar:android-204-status-gzip-fix

Conversation

Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

A HTTP request that responds with a 204: No Content status and has 'Content-Encoding': 'gzip' header set, throws a java.io.EOFException on Android. This results in the request failing with a null statusCode, null statusText and null headers. This doesn't occur on iOS.

What is the new behavior?

gzip encoding is ignored if the response status is 204. Response correctly resolves.

Fixes #7375.

cla-bot Bot added the cla: yes label Jun 28, 2019

Copy link
Copy Markdown
Contributor

test

manoldonev changed the title fix(android): Ignore gzip Content-Encoding for 204 statusCode fix(android): ignore gzip content-encoding for 204 status code Jun 28, 2019
manoldonev merged commit 4437cd6 into NativeScript:master Jun 28, 2019
lochstar deleted the android-204-status-gzip-fix branch July 10, 2019 22:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

204 rest api with content-type="application/json" throwing error

2 participants


Back | FazBrowse Home | New Git URL