Skip to content

Commit

Permalink
Empty query parameters must still use =
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jan 14, 2024
1 parent edf7897 commit 1cac61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/static-net-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -5422,7 +5422,7 @@ FilterContainer.prototype.filterQuery = function(fctxt) {
fctxt.redirectURL = url.slice(0, qpos);
if ( params.size !== 0 ) {
fctxt.redirectURL += '?' + Array.from(params).map(a =>
a[1] === '' ? a[0] : `${a[0]}=${a[1]}`
a[1] === '' ? `${a[0]}=` : `${a[0]}=${a[1]}`
).join('&');
}
if ( hpos !== url.length ) {
Expand Down

0 comments on commit 1cac61a

Please sign in to comment.