HttpResponseCache
HttpResponseCache copied to clipboard
Allow pages not ending in newline
Line 202 of Streams.java bombs out if a page ends in a non-newline. Seems extreme, should allow such a scenario (I'm running into it right now!).
I would suggest just completing the read process there instead of throwing the Exception.
This appears to be a problem with the original source as well.
Could you report this issue at https://code.google.com/p/android/ and link to it? We'll definitely want to get it fixed upstream as well as here.
If you submit a pull request with a fix, and a unit test that previously failed and now passes, that would get it resolved super quick. Thanks!