Skip to content

Commit

Permalink
Removed comments causing linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
H0r53 committed May 24, 2022
1 parent d9f976c commit f673a4f
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions source/core/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import type {
} from 'node:https';
import type {InspectOptions} from 'node:util';
import is, {assert} from '@sindresorhus/is';
//import lowercaseKeys from 'lowercase-keys';
import CacheableLookup from 'cacheable-lookup';
import http2wrapper, {ClientHttp2Session} from 'http2-wrapper';
import {isFormDataLike} from 'form-data-encoder';
Expand Down Expand Up @@ -716,13 +715,7 @@ const defaultInternals: Options['_internals'] = {
password: '',
http2: false,
allowGetBody: false,
/*
Do not use default user-agent value
headers: {
'user-agent': 'got (https://github.com/sindresorhus/got)',
},
*/
headers: {},
headers: {},
methodRewriting: false,
dnsLookupIpVersion: undefined,
parseJson: JSON.parse,
Expand Down Expand Up @@ -1912,16 +1905,6 @@ export default class Options {
set headers(value: Headers) {
assert.plainObject(value);

/**
Respect the header keys as they are provided and do not lowercase
if (this._merging) {
Object.assign(this._internals.headers, lowercaseKeys(value));
} else {
this._internals.headers = lowercaseKeys(value);
}
*/
if (this._merging) {
Object.assign(this._internals.headers, value);
} else {
Expand Down

0 comments on commit f673a4f

Please sign in to comment.