projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
855453d
)
correct status payload size
author
Andy Green
<andy@warmcat.com>
Thu, 27 Jul 2017 23:03:57 +0000
(07:03 +0800)
committer
Andy Green
<andy@warmcat.com>
Thu, 27 Jul 2017 23:03:57 +0000
(07:03 +0800)
lib/header.c
patch
|
blob
|
history
diff --git
a/lib/header.c
b/lib/header.c
index
c727490
..
6744c67
100644
(file)
--- a/
lib/header.c
+++ b/
lib/header.c
@@
-238,7
+238,7
@@
lws_return_http_status(struct lws *wsi, unsigned int code,
&p, end))
return 1;
- len = 3
7
+ strlen(html_body) + sprintf(slen, "%d", code);
+ len = 3
5
+ 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,