Fixed indentation and whitespace

master
James Booth 9 years ago
parent 7d3dea5d56
commit 07887428a9

@ -180,9 +180,9 @@ http_client_on_message_complete(struct http_parser *p) {
struct http_client *c = p->data; struct http_client *c = p->data;
/* keep-alive detection */ /* keep-alive detection */
if (c->parser.flags & F_CONNECTION_CLOSE) { if (c->parser.flags & F_CONNECTION_CLOSE) {
c->keep_alive = 0; c->keep_alive = 0;
} else if(c->parser.http_major == 1 && c->parser.http_minor == 1) { /* 1.1 */ } else if(c->parser.http_major == 1 && c->parser.http_minor == 1) { /* 1.1 */
c->keep_alive = 1; c->keep_alive = 1;
} }
c->http_version = c->parser.http_minor; c->http_version = c->parser.http_minor;

@ -165,7 +165,6 @@ enum flags
}; };
void http_parser_init(http_parser *parser, enum http_parser_type type); void http_parser_init(http_parser *parser, enum http_parser_type type);

@ -63,8 +63,8 @@ worker_can_read(int fd, short event, void *p) {
if(c->failed_alloc) { if(c->failed_alloc) {
slog(c->w->s, WEBDIS_DEBUG, "503", 3); slog(c->w->s, WEBDIS_DEBUG, "503", 3);
http_send_error(c, 503, "Service Unavailable"); http_send_error(c, 503, "Service Unavailable");
} else if (c->parser.flags & F_CONNECTION_CLOSE) { } else if (c->parser.flags & F_CONNECTION_CLOSE) {
c->broken = 1; c->broken = 1;
} else if(c->is_websocket) { } else if(c->is_websocket) {
/* we need to use the remaining (unparsed) data as the body. */ /* we need to use the remaining (unparsed) data as the body. */
if(nparsed < ret) { if(nparsed < ret) {

Loading…
Cancel
Save