fix chunked output in HTTP/1.0