The R Project SVN R

Rev

Rev 62726 | Rev 68392 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 62726 Rev 62770
Line 819... Line 819...
819
		c->line_pos -= s - c->line_buf;
819
		c->line_pos -= s - c->line_buf;
820
		memmove(c->line_buf, s, c->line_pos);
820
		memmove(c->line_buf, s, c->line_pos);
821
		/* GET/HEAD or no content length mean no body */
821
		/* GET/HEAD or no content length mean no body */
822
		if (c->method == METHOD_GET || c->method == METHOD_HEAD ||
822
		if (c->method == METHOD_GET || c->method == METHOD_HEAD ||
823
		    !(c->attr & CONTENT_LENGTH) || c->content_length == 0) {
823
		    !(c->attr & CONTENT_LENGTH) || c->content_length == 0) {
824
		    if (c->attr & CONTENT_LENGTH) {
824
		    if ((c->attr & CONTENT_LENGTH) && c->content_length > 0) {
825
			send_http_response(c, " 400 Bad Request (GET/HEAD with body)\r\n\r\n");
825
			send_http_response(c, " 400 Bad Request (GET/HEAD with body)\r\n\r\n");
826
			remove_worker(c);
826
			remove_worker(c);
827
			return;
827
			return;
828
		    }
828
		    }
829
		    process_request(c);
829
		    process_request(c);