Use lld for ID

PUBLISHED_FROM=1246247fc29eb9a75b986ff7bb2d2350a52c03fc
This commit is contained in:
Alexander Alashkin authored and Cesanta Bot committed 2016-07-22 16:26:31 +00:00
1 parent 4b2d3f5f5b
commit 9101cd0339
26 files changed
+80 -79

No files matched your search

+4 -4
View File
@@ -7,17 +7,17 @@ signature: |
size_t buf_size);
---
Parses the HTTP header `hdr`. Finds variable `var_name` and stores its value
in the buffer `buf`, `buf_size`. Returns 0 if variable not found, non-zero
Parse HTTP header `hdr`. Find variable `var_name` and store it's value
in the buffer `buf`, `buf_size`. Return 0 if variable not found, non-zero
otherwise.
This function is supposed to parse
cookies, authentication headers, etc. Example (error handling omitted):
cookies, authentication headers, etcetera. Example (error handling omitted):
char user[20];
struct mg_str *hdr = mg_get_http_header(hm, "Authorization");
mg_http_parse_header(hdr, "username", user, sizeof(user));
Returns the length of the variable's value. If buffer is not large enough,
Return length of the variable's value. If buffer is not large enough,
or variable not found, 0 is returned.