add 100 Continue

https://github.com/warmcat/libwebsockets/issues/1041
This commit is contained in:
Andy Green 2017-10-03 18:23:29 +08:00
parent 8b5eaa0534
commit 7cff6b0cf9
2 changed files with 5 additions and 0 deletions

View file

@ -169,6 +169,9 @@ lws_add_http_header_status(struct lws *wsi, unsigned int _code,
if (code >= 500 && code < (500 + ARRAY_SIZE(err500)))
description = err500[code - 500];
if (code == 100)
description = "Continue";
if (code == 200)
description = "OK";

View file

@ -3154,6 +3154,8 @@ lws_serve_http_file_fragment(struct lws *wsi);
//@{
enum http_status {
HTTP_STATUS_CONTINUE = 100,
HTTP_STATUS_OK = 200,
HTTP_STATUS_NO_CONTENT = 204,
HTTP_STATUS_PARTIAL_CONTENT = 206,