diff --git a/packages/@uppy/companion-client/src/RequestClient.js b/packages/@uppy/companion-client/src/RequestClient.js index 8598622046..8d90a195b8 100644 --- a/packages/@uppy/companion-client/src/RequestClient.js +++ b/packages/@uppy/companion-client/src/RequestClient.js @@ -108,6 +108,7 @@ module.exports = class RequestClient { // filter to keep only allowed Headers Object.keys(headers).forEach((header) => { if (allowedHeaders.indexOf(header.toLowerCase()) === -1) { + this.uppy.log(`[CompanionClient] excluding unallowed header ${header}`) delete headers[header] } }) diff --git a/packages/@uppy/companion/test/__tests__/companion.js b/packages/@uppy/companion/test/__tests__/companion.js index 3ad2f2fa58..3abcc422fa 100644 --- a/packages/@uppy/companion/test/__tests__/companion.js +++ b/packages/@uppy/companion/test/__tests__/companion.js @@ -7,7 +7,6 @@ jest.mock('../../src/server/helpers/oauth-state', () => { generateState: () => 'some-cool-nice-encrytpion', addToState: () => 'some-cool-nice-encrytpion', getFromState: (state, key) => { - console.log('mummy', state, key) if (state === 'state-with-invalid-instance-url') { return 'http://localhost:3452' }