We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some websites, such as GitHub's API, refuse requests from clients that don't provide a User-Agent header, so SP should pass one.
User-Agent
Not sure how to get a version number or specific app name here, but for example just this satisfies basic requirements:
index 789070a..4450f30 100644 --- a/src/io/http/request.cpp +++ b/src/io/http/request.cpp @@ -12,6 +12,7 @@ Request::Request(const string& host, int port, Scheme scheme) : port(port), scheme(scheme) { headers["Host"] = host; + headers["User-Agent"] = "SeriousProton/0.0.0"; } void Request::setHeader(const string& key, const string& value)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Some websites, such as GitHub's API, refuse requests from clients that don't provide a
User-Agent
header, so SP should pass one.Not sure how to get a version number or specific app name here, but for example just this satisfies basic requirements:
The text was updated successfully, but these errors were encountered: