Compare commits

..

No commits in common. "main" and "19-06-25-7a3b5c" have entirely different histories.

View File

@ -60,8 +60,6 @@ export function preRequestHandlerWrapper(request) {
export function preRequestHandler() {
setHeader('x-dp-access-token', "gystG4wUtCCT0dkXxkMANL0PjQrCNAxxDWGkKYGQ9IkvrNo5pph78JGPWH4y-l1O_hQqxXHhdPU8dTRu25JScA");
removeHeader('remove');
setMethod("POST");
const body = getJsonBody()
}
@ -107,7 +105,7 @@ export function getJsonBody() {
const contentType = currentRequest.contentType || currentRequest.headers?.['content-type'] || '';
if (!contentType.includes('application/json')) {
throw new InvalidJsonContentTypeError('Invalid json body',400);
throw new InvalidJsonContentTypeError();
}
try {