geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1404730 - /geronimo/server/branches/3.0/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/FileUploadServletClient.java
Date Thu, 01 Nov 2012 19:30:27 GMT
Author: gawor
Date: Thu Nov  1 19:30:27 2012
New Revision: 1404730

URL: http://svn.apache.org/viewvc?rev=1404730&view=rev
Log:
Set Content-Type header to indicate binary data is being transferred

Modified:
    geronimo/server/branches/3.0/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/FileUploadServletClient.java

Modified: geronimo/server/branches/3.0/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/FileUploadServletClient.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/FileUploadServletClient.java?rev=1404730&r1=1404729&r2=1404730&view=diff
==============================================================================
--- geronimo/server/branches/3.0/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/FileUploadServletClient.java
(original)
+++ geronimo/server/branches/3.0/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/FileUploadServletClient.java
Thu Nov  1 19:30:27 2012
@@ -261,6 +261,7 @@ public class FileUploadServletClient imp
         String s = new String(Base64.encode(data));
         while(s.length() % 4 != 0) s += "=";
         con.setRequestProperty("Authorization", "Basic "+s);
+        con.setRequestProperty("Content-Type", "application/octet-stream");
         con.setDoInput(true);
         con.setDoOutput(true);
         con.connect();



Mime
View raw message