diff --git a/api/lambda.go b/api/lambda.go index b2aeaed6b8468635744c148ed8b1025cd7e8398f..c36be3b0a7dfff84fc761509603e54dd684c3154 100644 --- a/api/lambda.go +++ b/api/lambda.go @@ -273,6 +273,10 @@ func (api Api) Handler(baseCtx context.Context, apiGatewayProxyReq events.APIGat } res.Headers["Content-Type"] = "application/json" res.Body = string(bodyBytes) + } else { + //no content + delete(res.Headers, "Content-Type") + res.Body = "" } return }