From: Adam Dickmeiss Date: Wed, 26 Sep 2007 09:09:15 +0000 (+0000) Subject: Slightly better diagnostics for HTTP parse errors X-Git-Tag: PAZPAR2.1.0.4~3 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=3695af4856ba7393a6ae4e793afa8d3263db9416;p=pazpar2-moved-to-github.git Slightly better diagnostics for HTTP parse errors --- diff --git a/src/http.c b/src/http.c index 781a7d0..dfc4f38 100644 --- a/src/http.c +++ b/src/http.c @@ -1,4 +1,4 @@ -/* $Id: http.c,v 1.39 2007-09-26 08:53:53 adam Exp $ +/* $Id: http.c,v 1.40 2007-09-26 09:09:15 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -483,13 +483,13 @@ struct http_request *http_parse_request(struct http_channel *c, if (!(buf = strchr(buf, ' '))) { - yaz_log(YLOG_WARN, "Syntax error in request (1)"); + yaz_log(YLOG_WARN, "Missing Request-URI in HTTP request"); return 0; } buf++; if (!(p = strchr(buf, ' '))) { - yaz_log(YLOG_WARN, "Syntax error in request (2)"); + yaz_log(YLOG_WARN, "HTTP Request-URI not terminated (too long?)"); return 0; } *(p++) = '\0';