Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mr-thierry/retrofitokhttp304bug
https://github.com/mr-thierry/retrofitokhttp304bug
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mr-thierry/retrofitokhttp304bug
- Owner: mr-thierry
- Created: 2019-08-08T16:13:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-08T16:19:59.000Z (over 5 years ago)
- Last Synced: 2024-11-10T13:47:38.028Z (2 months ago)
- Language: Kotlin
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RetrofitOkHttp304Bug
Used to show an example of the issue listed here:
https://github.com/square/retrofit/issues/3191#issuecomment-519523705To replicate the problem
1) Start the app
2) Make an HTTP call by pressing the button
3) Wait 60 seconds for the local cache to expire
4) Make an HTTP call again by pressing the button again. The server should return a 304, which Retrofit cannot parse
--> Retrofit tries to parse the result, but the result is empty