Skip to content

Conversation

@Isty001
Copy link
Member

@Isty001 Isty001 commented Sep 16, 2020

There are cases when the User-Agent header is mandatory, for example GitHub API requires it, otherwise it'll return 403. I think this change won't cause any break in existing packages relying on http-get.c.

For example http_get("https://api.github.com/repos/clibs/clib/releases/latest") will return 403 without the CURLOPT_USERAGENT option set.

@Isty001 Isty001 merged commit b184a1b into master Sep 16, 2020
@stephenmathieson stephenmathieson deleted the add-user-agent branch September 16, 2020 22:30
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.

3 participants