Changeset 1433ecda in mainline for uspace/lib/http/src/headers.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/http/src/headers.c
r47b2d7e3 r1433ecda 87 87 if (buf == NULL) { 88 88 return printf_size(HTTP_HEADER_LINE, header->name, header->value); 89 } 90 else { 89 } else { 91 90 return snprintf(buf, buf_size, 92 91 HTTP_HEADER_LINE, header->name, header->value); … … 229 228 size_t write_index = 0; 230 229 231 while (is_lws(value[read_index])) read_index++; 230 while (is_lws(value[read_index])) 231 read_index++; 232 232 233 233 while (value[read_index] != 0) { 234 234 if (is_lws(value[read_index])) { 235 while (is_lws(value[read_index])) read_index++; 235 while (is_lws(value[read_index])) 236 read_index++; 236 237 237 238 if (value[read_index] != 0) … … 255 256 } 256 257 257 void http_headers_init(http_headers_t *headers) { 258 void http_headers_init(http_headers_t *headers) 259 { 258 260 list_initialize(&headers->list); 259 261 } … … 269 271 if (found == NULL) { 270 272 found = header; 271 } 272 else { 273 } else { 273 274 return HTTP_EMULTIPLE_HEADERS; 274 275 }
Note:
See TracChangeset
for help on using the changeset viewer.