Commit 739e6882 authored by Pierre Phaneuf's avatar Pierre Phaneuf Committed by Niels Provos
Browse files

Allow empty reason line in HTTP status

parent 50ec59f4
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1256,14 +1256,13 @@ evhttp_parse_response_line(struct evhttp_request *req, char *line)
{
	char *protocol;
	char *number;
	char *readable;
	char *readable = "";

	protocol = strsep(&line, " ");
	if (line == NULL)
		return (-1);
	number = strsep(&line, " ");
	if (line == NULL)
		return (-1);
	if (line != NULL)
		readable = line;

	if (strcmp(protocol, "HTTP/1.0") == 0) {