Skip to content

Commit

Permalink
companion,companion-client: remove/add logs accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
ifedapoolarewaju committed May 30, 2019
1 parent f1d23c3 commit 6443367
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/@uppy/companion-client/src/RequestClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
})
Expand Down
1 change: 0 additions & 1 deletion packages/@uppy/companion/test/__tests__/companion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit 6443367

Please sign in to comment.