Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/api/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ function execute(session::GoogleSession, resource::APIResource, method::APIMetho
# https://github.com/JuliaWeb/HTTP.jl/blob/master/src/Messages.jl#L166
for (key, value) in res.headers
if key=="Content-Type"
if value=="application/json"
content_type = split(value, ";")[1]
if content_type=="application/json"
for (k2, v2) in res.headers
if k2=="Content-Length" && v2=="0"
return HTTP.nobody
Expand Down
2 changes: 1 addition & 1 deletion src/credentials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function Base.get(credentials::MetadataCredentials, path::AbstractString; contex
if HTTP.Messages.status(res) != 200
throw(CredentialError("Unable to obtain credentials from metadata server"))
end
String(res.data)
String(res.body)
end

"""
Expand Down