Skip to content

Commit

Permalink
fix(browser): delete set header "User-Agent" (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyie authored Oct 10, 2020
1 parent e306edb commit b11c162
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions shims/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,6 @@ exports.requestWithCallback = function requestWithCallback(url, args, callback)
};
}

// set user-agent
if (!options.headers['User-Agent'] && !options.headers['user-agent']) {
options.headers['User-Agent'] = navigator.userAgent;
}

if (args.gzip) {
if (!options.headers['Accept-Encoding'] && !options.headers['accept-encoding']) {
Expand Down

0 comments on commit b11c162

Please sign in to comment.