Index: trunk/willow/src/willow/chunking.cc |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | chunking_filter::bf_eof(void) |
42 | 42 | { |
43 | 43 | WDEBUG((WLOG_DEBUG, "chunking_filter: EOF")); |
44 | | - _buf.add("\r\n0\r\n", 5, false); |
| 44 | + _buf.add("\r\n0\r\n\r\n", 7, false); |
45 | 45 | return io::sink_result_finished; |
46 | 46 | } |
47 | 47 | |
Index: trunk/willow/src/willow/whttp.cc |
— | — | @@ -955,6 +955,8 @@ |
956 | 956 | */ |
957 | 957 | if (_header_parser->_http_vers != http11) |
958 | 958 | _error_headers->add("Connection", "close"); |
| 959 | + else |
| 960 | + _error_headers->add("Transfer-Encoding", "chunked"); |
959 | 961 | |
960 | 962 | _error_headers->sp_connect(_client_sink); |
961 | 963 | _error_headers->sp_uncork(); |