Author: boisvert
Date: Wed Mar 16 17:01:16 2011
New Revision: 1082211

URL: http://svn.apache.org/viewvc?rev=1082211&view=rev
Log:
BUILDR-573 HTTP upload PUT request with incorrect Content-Type (Mathias Doenitz)

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/core/transports.rb

Modified: buildr/trunk/CHANGELOG
URL: 
http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1082211&r1=1082210&r2=1082211&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Wed Mar 16 17:01:16 2011
@@ -1,5 +1,6 @@
 1.4.6 (Pending)
 * Fixed: BUILDR-571 Generated IDEA projects include resources multiple times 
(Peter Royal) 
+* Fixed: BUILDR-573 HTTP upload PUT request with incorrect Content-Type 
(Mathias Doenitz)
 
 1.4.5 (2011-02-20)
 * Added:  BUILDR-555 Add support for the jaxb binding compiler (Mark Petrovic)

Modified: buildr/trunk/lib/buildr/core/transports.rb
URL: 
http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/transports.rb?rev=1082211&r1=1082210&r2=1082211&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/transports.rb (original)
+++ buildr/trunk/lib/buildr/core/transports.rb Wed Mar 16 17:01:16 2011
@@ -327,7 +327,7 @@ module URI
         while chunk = yield(RW_CHUNK_SIZE)
           content << chunk
         end
-        headers = { 'Content-MD5'=>Digest::MD5.hexdigest(content.string) }
+        headers = { 'Content-MD5'=>Digest::MD5.hexdigest(content.string), 
'Content-Type'=>'application/octet-stream' }
         request = Net::HTTP::Put.new(request_uri.empty? ? '/' : request_uri, 
headers)
         request.basic_auth self.user, self.password if self.user
         response = nil


Reply via email to