fix mime type on leaf header 48/3148/1
authorLuc <luc@honk-honk.com>
Sat, 23 Feb 2013 03:01:21 +0000 (11:01 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:38 +0000 (13:01 -0800)
Signed-off-by: Luc <luc@honk-honk.com>
test-server/test-server.c

index b059f1c..6af7a99 100644 (file)
@@ -157,7 +157,7 @@ static int callback_http(struct libwebsocket_context *context,
                        p += sprintf((char *)p,
                                "HTTP/1.0 200 OK\x0d\x0a"
                                "Server: libwebsockets\x0d\x0a"
-                               "Content-Type: image-jpeg\x0d\x0a"
+                               "Content-Type: image/jpeg\x0d\x0a"
                                        "Content-Length: %u\x0d\x0a\x0d\x0a",
                                        (unsigned int)stat_buf.st_size);