Skip to content

Update README.md, fix installation script for Mac#282

Merged
FabianKramm merged 1 commit intodevspace-sh:masterfrom
zkhadikov-old:master
Oct 10, 2018
Merged

Update README.md, fix installation script for Mac#282
FabianKramm merged 1 commit intodevspace-sh:masterfrom
zkhadikov-old:master

Conversation

@zkhadikov-old
Copy link
Copy Markdown
Contributor

Curl needs "Accept: application/json" in request header, else call
curl "https://api.github.com/repos/covexo/devspace/releases/latest" fails with following error message
{
"message": "Unsupported 'Accept' header: [#<Sinatra::Request::AcceptEntry:0x00007f8e4e2f8878 @entry="application/vnd.heroku+json; version=3", @type="application/vnd.heroku+json", @params={"version"=>"3"}, @q=1.0>]. Must accept 'application/json'.",
"documentation_url": "https://developer.github.com/v3/media"
}

Curl needs "Accept: application/json" in request header, else  call 
curl "https://api.github.com/repos/covexo/devspace/releases/latest" fails with following error message 
{
  "message": "Unsupported 'Accept' header: [#<Sinatra::Request::AcceptEntry:0x00007f8e4e2f8878 @entry=\"application/vnd.heroku+json; version=3\", @type=\"application/vnd.heroku+json\", @params={\"version\"=>\"3\"}, @q=1.0>]. Must accept 'application/json'.",
  "documentation_url": "https://developer.github.com/v3/media"
}
@FabianKramm
Copy link
Copy Markdown
Collaborator

Thanks for opening this pull request! You are right, if the standard accept http header is somehow overridden, the installation script fails, hence I will merge this pull request.

@FabianKramm FabianKramm merged commit f121360 into devspace-sh:master Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants