Skip to content

Commit

Permalink
Assume media type is always application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwahsh authored Mar 24, 2020
1 parent 15defe6 commit 262ddb7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/google/api_client/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ def resumable_upload
# @return [String]
# Value of content-type header
def media_type
_, content_type = self.headers.detect do |h, v|
h.downcase == 'Content-Type'.downcase
end
if content_type
return content_type[/^([^;]*);?.*$/, 1].strip.downcase
else
return nil
end
'application/json'
end

##
Expand Down

0 comments on commit 262ddb7

Please sign in to comment.