mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Check responseHeaders length before calling pop() (#1739)
This throws an error on Firefox when responseHeaders is 0-length
This commit is contained in:
parent
8c632db436
commit
77da1aabb3
1 changed files with 1 additions and 1 deletions
|
@ -2108,7 +2108,7 @@ var httpObserver = {
|
|||
return;
|
||||
}
|
||||
|
||||
if ( result.responseHeaders ) {
|
||||
if ( result.responseHeaders && result.responseHeaders.length ) {
|
||||
channel.setResponseHeader(
|
||||
'Content-Security-Policy',
|
||||
result.responseHeaders.pop().value,
|
||||
|
|
Loading…
Reference in a new issue