#518: eat our shorts, github

This commit is contained in:
Cameron Kaiser 2018-08-23 23:10:17 -07:00
parent 812d03b96a
commit 43534dea3a

View File

@ -432,10 +432,11 @@ nsHttpHandler::AddStandardRequestHeaders(nsHttpHeaderArray *request,
nsresult rv;
// Add the "User-Agent" header (unless we have blacklisted this site and
// we aren't using a custom user agent; see TenFourFox issue 422).
// we aren't using a custom user agent; see TenFourFox issues 422 and 518).
if (mUserAgentOverride || (
!hostLine.EqualsLiteral("i.imgur.com") &&
!hostLine.EqualsLiteral("imgur.com") &&
!hostLine.EqualsLiteral("github.com") &&
1)) {
rv = request->SetHeader(nsHttp::User_Agent, UserAgent(),
false, nsHttpHeaderArray::eVarietyDefault);