Because you can only get a resp_state of chunks if you are HTTP1.1 - if it's HTTP1.0 I set the resp_state to streamed

By the way, by git skills are limited and I forgot to branch my fork when making the changes so suspect I'll need to re-merge from a fresh pull :(  Apologies if you end up with another pull request!

Thanks

Adrian
--  
Dr Adrian Roe
Director


On Friday, 12 July 2013 at 21:02, Loïc Hoguin wrote:

> In src/cowboy_req.erl:
> > _ = reply(Status, [], [], Req), > ok; > %% Terminate the chunked body for HTTP/1.1 only. > -ensure_response(#http_req{method= <<"HEAD">>, resp_state=chunks}, _) -> > - ok; > -ensure_response(#http_req{version='HTTP/1.0', resp_state=chunks}, _) ->  
> No I mean HTTP/1.0. You make it return the last chunk, except HTTP/1.0 doesn't do chunks so it must not be sent.
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/extend/cowboy/pull/548/files#r5173672).
>  
>  
>