Permalink
Browse files

Add known_length_stream pattern to wrq module

  • Loading branch information...
1 parent dbc1132 commit d6fe25b2b51d6dce2d661673eac0680915d4f6c7 @reiddraper reiddraper committed Dec 13, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/wrq.erl
View
1 src/wrq.erl
@@ -140,6 +140,7 @@ resp_headers(_RD = #wm_reqdata{resp_headers=RespH}) -> RespH. % mochiheaders
resp_body(_RD = #wm_reqdata{resp_body=undefined}) -> undefined;
resp_body(_RD = #wm_reqdata{resp_body={stream,X}}) -> {stream,X};
+resp_body(_RD = #wm_reqdata{resp_body={known_length_stream,X,Y}}) -> {known_length_stream,X,Y};
resp_body(_RD = #wm_reqdata{resp_body={stream,X,Y}}) -> {stream,X,Y};
resp_body(_RD = #wm_reqdata{resp_body={writer,X}}) -> {writer,X};
resp_body(_RD = #wm_reqdata{resp_body=RespB}) when is_binary(RespB) -> RespB;

0 comments on commit d6fe25b

Please sign in to comment.