mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-03 20:30:00 +00:00
#518: eat our shorts, github
This commit is contained in:
parent
812d03b96a
commit
43534dea3a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user