correct status payload size
This commit is contained in:
parent
855453d1ae
commit
9f31e94e09
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ lws_return_http_status(struct lws *wsi, unsigned int code,
|
|||
&p, end))
|
||||
return 1;
|
||||
|
||||
len = 37 + strlen(html_body) + sprintf(slen, "%d", code);
|
||||
len = 35 + strlen(html_body) + sprintf(slen, "%d", code);
|
||||
n = sprintf(slen, "%d", len);
|
||||
|
||||
if (lws_add_http_header_by_token(wsi, WSI_TOKEN_HTTP_CONTENT_LENGTH,
|
||||
|
|
Loading…
Add table
Reference in a new issue