The new Request/Response API is more strict around confirming the headers match the response body length. The HttpURLConnection API doesn't care, though it probably should.