mirror of
https://github.com/sasjs/server.git
synced 2026-01-10 16:00:05 +00:00
fix(stp): return json for webout
This commit is contained in:
@@ -148,7 +148,8 @@ ${program}`
|
||||
? await readFile(headersPath)
|
||||
: ''
|
||||
const httpHeaders: HTTPHeaders = extractHeaders(headersContent)
|
||||
const fileResponse: boolean = httpHeaders.hasOwnProperty('content-type')
|
||||
const fileResponse: boolean =
|
||||
httpHeaders.hasOwnProperty('content-type') && !returnJson
|
||||
|
||||
const webout = (await fileExists(weboutPath))
|
||||
? fileResponse
|
||||
|
||||
Reference in New Issue
Block a user