1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

fix mime type on leaf header

Signed-off-by: Luc <luc@honk-honk.com>
This commit is contained in:
Luc 2013-02-23 11:01:21 +08:00 committed by Andy Green
parent fc7c5e4539
commit e46043cb8c

View 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);