mirror of
https://github.com/sasjs/server.git
synced 2026-01-04 21:30:05 +00:00
fix: added http headers to /code api as well
This commit is contained in:
@@ -85,7 +85,7 @@ const executeReturnRaw = async (
|
||||
query
|
||||
)) as ExecuteReturnRaw
|
||||
|
||||
Object.entries(httpHeaders ?? {}).forEach(([key, value]) => {
|
||||
Object.entries(httpHeaders).forEach(([key, value]) => {
|
||||
req.res?.set(key, value)
|
||||
})
|
||||
|
||||
@@ -121,7 +121,7 @@ const executeReturnJson = async (
|
||||
true
|
||||
)) as ExecuteReturnJson
|
||||
|
||||
Object.entries(httpHeaders ?? {}).forEach(([key, value]) => {
|
||||
Object.entries(httpHeaders).forEach(([key, value]) => {
|
||||
req.res?.set(key, value)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user