okhttp v2.4.0 Release Notes
-
2015-05-22
Forbid response bodies on HTTP 204 and 205 responses. Webservers that return such malformed responses will now trigger a
ProtocolException
in the client.WebSocketListener has incompatible changes. The
onOpen()
method is now called on the reader thread, so implementations must return before further websocket messages will be delivered. TheonFailure()
method now includes an HTTP response if one was returned.