Skip to content

Commit

Permalink
Don't add the "connection" header to every request (#44343) (#44502)
Browse files Browse the repository at this point in the history
* Don't add the "connection" header to every request -- let the browser do so
  • Loading branch information
joelgriffith committed Sep 4, 2019
1 parent 6b1f072 commit ddeee24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/legacy/plugins/reporting/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const WHITELISTED_JOB_CONTENT_TYPES = [

export const KBN_SCREENSHOT_HEADER_BLACKLIST = [
'accept-encoding',
'connection',
'content-length',
'content-type',
'host',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ test(`omits blacklisted headers`, async () => {

const blacklistedHeaders = {
'accept-encoding': '',
connection: 'upgrade',
'content-length': '',
'content-type': '',
host: '',
Expand Down

0 comments on commit ddeee24

Please sign in to comment.