https://issues.apache.org/bugzilla/show_bug.cgi?id=55454

--- Comment #3 from Violeta Georgieva <violet...@apache.org> ---
What about if we do a change like this?

--- org/apache/tomcat/util/http/parser/HttpParser.java    (revision 1515761)
+++ org/apache/tomcat/util/http/parser/HttpParser.java    (working copy)
@@ -210,11 +210,13 @@
         while (lookForSemiColon == SkipConstantResult.FOUND) {
             String attribute = readToken(input);

+            String value = "";
             if (skipConstant(input, "=") == SkipConstantResult.FOUND) {
-                String value = readTokenOrQuotedString(input, true);
+                value = readTokenOrQuotedString(input, true);
+            }
+
+            if (attribute != null) {
                 parameters.put(attribute.toLowerCase(Locale.ENGLISH), value);
-            } else {
-                parameters.put(attribute.toLowerCase(Locale.ENGLISH), "");
             }

             lookForSemiColon = skipConstant(input, ";");

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to