lib/appengine-apis/urlfetch.rb in appengine-apis-0.0.15 vs lib/appengine-apis/urlfetch.rb in appengine-apis-0.0.16
- old
+ new
@@ -140,10 +140,10 @@
:each
end
if payload
if headers["Content-Length"].to_i != payload.size
- headers["Content-Length"] = payload.size
+ headers["Content-Length"] = payload.size.to_s
end
end
headers.send(iterator) do |name, value|
request.set_header(HTTPHeader.new(name, value))