extend/cowboy — Issue #140: Cowboy sends "Transfer-Encoding: chunked" on http/1.0 (which is illegal)
Author: majek
Created: 2012-02-07 16:41:42+00:00
State: open

`Transfer-Encoding: chunked` was invented during http/1.1 and is illegal to use in http/1.0. But Cowboy still sends it.

Steps to reproduce: https://gist.github.com/1760599

erl cowboy_http10_bug.erl
cat request.txt | nc -q1 localhost 9999

What you see:

```
HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Server: Cowboy

2
ok
0
```

What you should see:

```
HTTP/1.1 200 OK
Connection: close
Server: Cowboy

ok
```
(actually it usually doesn't matter if the response says HTTP/1.0 or HTTP/1.1)