Skip to content

Commit

Permalink
Azure#66 For Passenger MethodMissing.
Browse files Browse the repository at this point in the history
  • Loading branch information
katmsft committed Feb 24, 2020
1 parent 9b3af53 commit f374491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/azure/core/http/http_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def apply_string_io_headers
end

def apply_miscellaneous_headers
headers['Content-Length'] = body.bytesize.to_s
headers['Content-MD5'] = Base64.strict_encode64(Digest::MD5.digest(body)) unless headers['Content-MD5']
headers['Content-Length'] = body.size.to_s
headers['Content-MD5'] = Base64.strict_encode64(Digest::MD5.digest(body.to_s)) unless headers['Content-MD5']
end
end
end
Expand Down

0 comments on commit f374491

Please sign in to comment.