You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mark T. Miller" <mm...@gadgetspace.com> on 2001/05/18 22:49:23 UTC

[Beta5]HttpRequestBase POST buglet

I just started using TomCat B5 using the builtin HTTPConnector.
When POST-ing a form, none of the name-value pairs of the
"Query string" make it through.

I found the below minor logic bug, and it now is working for me.

--- HttpRequestBase.java.orig   Fri May 18 16:36:30 2001
+++ HttpRequestBase.java        Fri May 18 16:39:40 2001
@@ -616,7 +616,7 @@
         if (semicolon >= 0)
             contentType = contentType.substring(0, semicolon).trim();
        if ("POST".equals(getMethod()) && (getContentLength() > 0)
-            && (this.stream == null)
+            && (this.stream != null)
            && "application/x-www-form-urlencoded".equals(contentType)) {
            try {
                 int max = getContentLength();