mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Lowerize the params to allow case sensitive
This commit is contained in:
parent
d66314cfb3
commit
4623f20221
1 changed files with 1 additions and 1 deletions
|
@ -1555,7 +1555,7 @@ var PDFView = {
|
|||
var params = {};
|
||||
for (var i = 0, ii = parts.length; i < ii; ++i) {
|
||||
var param = parts[i].split('=');
|
||||
var key = param[0];
|
||||
var key = param[0].toLowerCase();
|
||||
var value = param.length > 1 ? param[1] : null;
|
||||
params[decodeURIComponent(key)] = decodeURIComponent(value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue