projects
/
platform
/
upstream
/
libwebsockets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lws_return_http_status: if not in HTTP/2, restrict to a single write
[platform/upstream/libwebsockets.git]
/
test-server
/
test-server-http.c
diff --git
a/test-server/test-server-http.c
b/test-server/test-server-http.c
index
a990f6f
..
070bf7e
100644
(file)
--- a/
test-server/test-server-http.c
+++ b/
test-server/test-server-http.c
@@
-378,7
+378,7
@@
int callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user,
if (!mimetype) {
lwsl_err("Unknown mimetype for %s\n", buf);
lws_return_http_status(wsi,
- HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE,
NULL
);
+ HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE,
"Unknown Mimetype"
);
return -1;
}