OSDN Git Service

fix x-octet-stream mime type
authorAlex Beregszaszi <alex@rtfs.hu>
Sat, 31 Mar 2007 14:39:04 +0000 (14:39 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Sat, 31 Mar 2007 14:39:04 +0000 (14:39 +0000)
Originally committed as revision 8568 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index fdb0f54..29b785b 100644 (file)
@@ -1541,7 +1541,7 @@ static int http_parse_request(HTTPContext *c)
     q += snprintf(q, q - (char *) c->buffer + c->buffer_size, "HTTP/1.0 200 OK\r\n");
     mime_type = c->stream->fmt->mime_type;
     if (!mime_type)
-        mime_type = "application/x-octet_stream";
+        mime_type = "application/x-octet-stream";
     q += snprintf(q, q - (char *) c->buffer + c->buffer_size, "Pragma: no-cache\r\n");
 
     /* for asf, we need extra headers */