Commit 21bfc18b authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Turn off authentication if it fails

parent 03ef00b3
......@@ -179,6 +179,7 @@ int GitHubApiHelper::processAnonymousRequest(Poco::URI &uri,
std::ostream &responseStream) {
g_log.debug("Repeating API call anonymously\n");
removeHeader("Authorization");
m_api_token = ""; // all future calls are anonymous
return this->sendRequest(uri.toString(), responseStream);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment