Skip to content

Commit 262ddb7

Browse files
authored
Assume media type is always application/json
1 parent 15defe6 commit 262ddb7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/google/api_client/result.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,7 @@ def resumable_upload
6868
# @return [String]
6969
# Value of content-type header
7070
def media_type
71-
_, content_type = self.headers.detect do |h, v|
72-
h.downcase == 'Content-Type'.downcase
73-
end
74-
if content_type
75-
return content_type[/^([^;]*);?.*$/, 1].strip.downcase
76-
else
77-
return nil
78-
end
71+
'application/json'
7972
end
8073

8174
##

0 commit comments

Comments
 (0)