From 3695af4856ba7393a6ae4e793afa8d3263db9416 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 26 Sep 2007 09:09:15 +0000 Subject: [PATCH] Slightly better diagnostics for HTTP parse errors --- src/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'; -- 1.7.10.4