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

fix exception throw due to adding httpBody to get request. #1598

Merged

Conversation

Codebear98
Copy link
Contributor

@Codebear98 Codebear98 commented Sep 19, 2019

Issue
HttpCache not work for Get Request due to exception throw during response data creation.
and causing issue #1490

Code Change
The code below add a conditional check during Request construction preventing body being added to get request which will throw exception.

@sav007
Copy link
Contributor

sav007 commented Sep 20, 2019

Could you pls fix checkstyle error:

> Task :apollo-http-cache:checkstyle FAILED
[ant:checkstyle] [ERROR] /home/travis/build/apollographql/apollo-android/apollo-http-cache/src/main/java/com/apollographql/apollo/cache/http/ResponseHeaderRecord.java:273: Line is longer than 120 characters (found 152). [LineLength]

@Codebear98
Copy link
Contributor Author

Codebear98 commented Sep 24, 2019

updated with shorter(each line) and more readable coding style.

@sav007 sav007 merged commit 29906c1 into apollographql:master Sep 25, 2019
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.

None yet

2 participants