Changeset 1433ecda in mainline for uspace/lib/http
- 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
- Location:
- uspace/lib/http/src
- Files:
-
- 3 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 } -
uspace/lib/http/src/receive-buffer.c
r47b2d7e3 r1433ecda 310 310 *nrecv = written; 311 311 return EOK; 312 } 313 else if (c == '\r') { 312 } else if (c == '\r') { 314 313 rc = recv_discard(rb, '\n', &nr); 315 314 if (rc != EOK) -
uspace/lib/http/src/request.c
r47b2d7e3 r1433ecda 84 84 if (buf == NULL) { 85 85 return printf_size(HTTP_METHOD_LINE, method, path); 86 } 87 else { 86 } else { 88 87 return snprintf(buf, buf_size, HTTP_METHOD_LINE, method, path); 89 88 }
Note:
See TracChangeset
for help on using the changeset viewer.