click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r785834 - /incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java
Date Wed, 17 Jun 2009 22:12:52 GMT
Author: sabob
Date: Wed Jun 17 22:12:52 2009
New Revision: 785834

URL: http://svn.apache.org/viewvc?rev=785834&view=rev
Log:
fixed mock request to use multipart request when a file upload is requested

Modified:
    incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java

Modified: incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java?rev=785834&r1=785833&r2=785834&view=diff
==============================================================================
--- incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java (original)
+++ incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java Wed Jun
17 22:12:52 2009
@@ -275,6 +275,7 @@
         UploadedFile uf = new UploadedFile(fieldName, file, contentType);
 
         uploadedFiles.put(fieldName, uf);
+        setUseMultiPartContentType(true);
     }
 
     /**



Mime
View raw message