Fixing bug found by test.
This commit is contained in:
parent
d3bb8b2fa4
commit
05d19c92c7
|
@ -17,7 +17,7 @@ export function request(ctx?: Ctx, request?: any) {
|
|||
|
||||
if (!ctx) {
|
||||
request.headers[constants.Header.API_KEY] = coreEnv.INTERNAL_API_KEY
|
||||
} else {
|
||||
} else if (ctx.headers) {
|
||||
// copy all Budibase utilised headers over - copying everything can have
|
||||
// side effects like requests being rejected due to odd content types etc
|
||||
for (let header of Object.values(constants.Header)) {
|
||||
|
|
Loading…
Reference in New Issue