Permalink
Browse files

Add fix for 304 Not Modified

--HG--
branch : 1.2
  • Loading branch information...
1 parent b09b19b commit 2bba718d232957d684544453792367dcf8409cac @oscarh oscarh committed Feb 11, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/lhttpc_client.erl
View
3 src/lhttpc_client.erl
@@ -223,7 +223,8 @@ maybe_read_body("OPTIONS", _, Vsn, Hdrs, Ssl, Socket) ->
maybe_read_body(_, StatusCode, Vsn, Hdrs, Ssl, Socket) ->
% All other requests should have a body, unless indicated otherwise
case StatusCode of
- 204 -> {<<>>, Hdrs};
+ 204 -> {<<>>, Hdrs}; % RFC 2616 10.2.5
+ 304 -> {<<>>, Hdrs}; % RFC 2616 10.3.5
_ -> read_body(Vsn, Hdrs, Ssl, Socket)
end.

0 comments on commit 2bba718

Please sign in to comment.