Skip to content

Commit

Permalink
needless session.get_URL_options.headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Jan 24, 2024
1 parent f386c06 commit b5282a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wiki loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ function login_options_of_API_URL(API_URL) {
}

if (login_options.user_agent) {
CeL.debug('login_options_of_API_URL: Using customization user agent: '
+ login_options.user_agent, 1);
CeL.get_URL.default_user_agent = login_options.user_agent;
}

Expand Down Expand Up @@ -332,7 +334,7 @@ _global.Wiki = function new_wiki(do_login, API_URL) {
};
}

if (!session.get_URL_options.headers) {
if (false && !session.get_URL_options.headers) {
session.get_URL_options.headers = Object.create(null);
}
if (CeL.get_script_name()) {
Expand Down

0 comments on commit b5282a8

Please sign in to comment.