Changeset 6180
- Timestamp:
- 05/21/10 15:06:42 (3 years ago)
- Files:
-
- 1 modified
-
luci2/libustream/protocol/http.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci2/libustream/protocol/http.c
r6179 r6180 10 10 #include "../core.h" 11 11 #include "../ustream-encoding.h" 12 13 #define HTTP_FOLLOW_DEFAULT 514 12 15 13 #define HTTP_WRITE_CHUNKED 0x010000 … … 382 380 char *c = strchr(line, ':'); 383 381 if (!c) { 384 stream->status |= USTREAM_IO_COM PLETED;382 stream->status |= USTREAM_IO_COMMITED | USTREAM_IO_COMPLETED; 385 383 return (http->status = -(errno = EPROTO)); 386 384 } … … 400 398 if (errno != EAGAIN) { 401 399 http->status = -errno; 402 stream->status |= USTREAM_IO_COM PLETED;400 stream->status |= USTREAM_IO_COMMITED | USTREAM_IO_COMPLETED; 403 401 } 404 402 return (http->status = -errno);
