clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1525386 - /clerezza/trunk/jaxrs.utils/src/main/java/org/apache/clerezza/jaxrs/utils/form/MultiPartBodyImpl.java
Date Sun, 22 Sep 2013 16:16:44 GMT
Author: reto
Date: Sun Sep 22 16:16:43 2013
New Revision: 1525386

URL: http://svn.apache.org/r1525386
Log:
CLEREZZA-826: trimming media-type

Modified:
    clerezza/trunk/jaxrs.utils/src/main/java/org/apache/clerezza/jaxrs/utils/form/MultiPartBodyImpl.java

Modified: clerezza/trunk/jaxrs.utils/src/main/java/org/apache/clerezza/jaxrs/utils/form/MultiPartBodyImpl.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/jaxrs.utils/src/main/java/org/apache/clerezza/jaxrs/utils/form/MultiPartBodyImpl.java?rev=1525386&r1=1525385&r2=1525386&view=diff
==============================================================================
--- clerezza/trunk/jaxrs.utils/src/main/java/org/apache/clerezza/jaxrs/utils/form/MultiPartBodyImpl.java
(original)
+++ clerezza/trunk/jaxrs.utils/src/main/java/org/apache/clerezza/jaxrs/utils/form/MultiPartBodyImpl.java
Sun Sep 22 16:16:43 2013
@@ -361,7 +361,7 @@ public class MultiPartBodyImpl extends A
             allFieldNames.add(disposition.name);
             if (disposition.getFileName() != null) {
                 addFileField(disposition, (String) partHeaders
-                        .get(HttpHeaders.CONTENT_TYPE.toLowerCase(Locale.ENGLISH)), data);
+                        .get(HttpHeaders.CONTENT_TYPE.toLowerCase(Locale.ENGLISH)).trim(),
data);
             } else {
                 addTextField(disposition, data);
             }



Mime
View raw message