You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by jv...@apache.org on 2009/08/25 14:27:29 UTC

svn commit: r807577 - /mina/asyncweb/trunk/common/src/main/java/org/apache/asyncweb/common/codec/HttpRequestLineDecodingState.java

Author: jvermillard
Date: Tue Aug 25 12:27:28 2009
New Revision: 807577

URL: http://svn.apache.org/viewvc?rev=807577&view=rev
Log:
fix for ASYNCWEB-34
using ULR in place of URI for parsing URL sent by the client

Modified:
    mina/asyncweb/trunk/common/src/main/java/org/apache/asyncweb/common/codec/HttpRequestLineDecodingState.java

Modified: mina/asyncweb/trunk/common/src/main/java/org/apache/asyncweb/common/codec/HttpRequestLineDecodingState.java
URL: http://svn.apache.org/viewvc/mina/asyncweb/trunk/common/src/main/java/org/apache/asyncweb/common/codec/HttpRequestLineDecodingState.java?rev=807577&r1=807576&r2=807577&view=diff
==============================================================================
--- mina/asyncweb/trunk/common/src/main/java/org/apache/asyncweb/common/codec/HttpRequestLineDecodingState.java (original)
+++ mina/asyncweb/trunk/common/src/main/java/org/apache/asyncweb/common/codec/HttpRequestLineDecodingState.java Tue Aug 25 12:27:28 2009
@@ -19,7 +19,7 @@
  */
 package org.apache.asyncweb.common.codec;
 
-import java.net.URI;
+import java.net.URL;
 import java.nio.charset.CharsetDecoder;
 
 import org.apache.asyncweb.common.HttpMethod;
@@ -87,7 +87,7 @@
         @Override
         protected DecodingState finishDecode(IoBuffer product,
                 ProtocolDecoderOutput out) throws Exception {
-            out.write(new URI(product.getString(defaultDecoder)));
+            out.write(new URL(product.getString(defaultDecoder)));
             return AFTER_READ_REQUEST_URI;
         }
     };