mirror of https://github.com/gorhill/uBlock.git
this fixes #966
This commit is contained in:
parent
ba8b9ba008
commit
c4034d804a
|
@ -2005,9 +2005,15 @@ var httpObserver = {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/966
|
||||||
|
var hostname = URI.asciiHost;
|
||||||
|
if ( hostname.endsWith('.') ) {
|
||||||
|
hostname = hostname.slice(0, -1);
|
||||||
|
}
|
||||||
|
|
||||||
var result = this.onBeforeRequest({
|
var result = this.onBeforeRequest({
|
||||||
frameId: details.frameId,
|
frameId: details.frameId,
|
||||||
hostname: URI.asciiHost,
|
hostname: hostname,
|
||||||
parentFrameId: details.parentFrameId,
|
parentFrameId: details.parentFrameId,
|
||||||
tabId: details.tabId,
|
tabId: details.tabId,
|
||||||
type: type,
|
type: type,
|
||||||
|
@ -2055,8 +2061,14 @@ var httpObserver = {
|
||||||
responseHeaders.push({ name: 'Content-Security-Policy', value: value });
|
responseHeaders.push({ name: 'Content-Security-Policy', value: value });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/966
|
||||||
|
var hostname = URI.asciiHost;
|
||||||
|
if ( hostname.endsWith('.') ) {
|
||||||
|
hostname = hostname.slice(0, -1);
|
||||||
|
}
|
||||||
|
|
||||||
var result = this.onHeadersReceived({
|
var result = this.onHeadersReceived({
|
||||||
hostname: URI.asciiHost,
|
hostname: hostname,
|
||||||
parentFrameId: channelData[1],
|
parentFrameId: channelData[1],
|
||||||
responseHeaders: responseHeaders,
|
responseHeaders: responseHeaders,
|
||||||
tabId: channelData[3],
|
tabId: channelData[3],
|
||||||
|
|
Loading…
Reference in New Issue