--- main/http.c.orig 2011-05-18 11:11:02.030771501 +0200 +++ main/http.c 2011-05-18 11:40:09.030755410 +0200 @@ -272,7 +272,7 @@ ast_str_set(&http_header, 0, "Content-type: %s\r\n" "ETag: %s\r\n" - "Last-Modified: %s", + "Last-Modified: %s\r\n", mtype, etag, timebuf); @@ -398,13 +398,13 @@ "Connection: close\r\n" "%s" "Content-Length: %d\r\n" - "%s\r\n\r\n", + "%s\r\n", status_code, status_title ? status_title : "OK", ast_get_version(), timebuf, static_content ? "" : "Cache-Control: no-cache, no-store\r\n", content_length, - http_header ? ast_str_buffer(http_header) : "" + http_header ? ast_str_buffer(http_header) : "\r\n" ); /* send content */