fix: Prevent upload requests from form-encoding their queries

This commit is contained in:
Daniel Azuma authored and GitHub committed 2019-11-05 08:28:54 -08:00
1 parent 6dba874ed0
commit 85763ece2f
1 file changed
+4
+4
View File
@@ -138,6 +138,10 @@ module Google
@state = :start
@upload_url = nil
@offset = 0
# Prevent the command from populating the body with form encoding, by
# asserting that it already has a body. Form encoding is never used
# by upload requests.
self.body = '' unless self.body
super
end