Correct logic, detect no 'token' chars, or missing ':'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754577 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/server/protocol.c b/server/protocol.c
index cef7517..60be6fb 100644
--- a/server/protocol.c
+++ b/server/protocol.c
@@ -946,7 +946,7 @@
{
/* Ensure valid token chars before ':' per RFC 7230 3.2.4 */
value = (char *)ap_scan_http_token(last_field);
- if ((value > last_field) || *value != ':') {
+ if ((value == last_field) || *value != ':') {
r->status = HTTP_BAD_REQUEST;
apr_table_setn(r->notes, "error-notes",
apr_psprintf(r->pool,