Merge branch 'fix/getHeaderName' of Joxit/urequest.js into master

This commit is contained in:
AJ ONeal 2018-07-12 09:05:15 +00:00 committed by Gitea
commit c880788e9a
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ function setDefaults(defs) {
if (!opts.followOriginalHttpMethod) {
opts.method = 'GET';
opts.body = null;
delete opts.headers[getHeaderName(opts.headers, 'Content-Length')];
delete opts.headers[getHeaderName(opts.headers, 'Transfer-Encoding')];
delete opts.headers[getHeaderName(opts, 'Content-Length')];
delete opts.headers[getHeaderName(opts, 'Transfer-Encoding')];
}
if (opts.removeRefererHeader && opts.headers) {
delete opts.headers.referer;