mirror of
https://github.com/sasjs/server.git
synced 2026-01-15 09:50:06 +00:00
fix(stp): read file in non-binary mode if debug one
This commit is contained in:
@@ -157,7 +157,9 @@ ${program}`
|
|||||||
: ''
|
: ''
|
||||||
const httpHeaders: HTTPHeaders = extractHeaders(headersContent)
|
const httpHeaders: HTTPHeaders = extractHeaders(headersContent)
|
||||||
const fileResponse: boolean =
|
const fileResponse: boolean =
|
||||||
httpHeaders.hasOwnProperty('content-type') && !returnJson
|
httpHeaders.hasOwnProperty('content-type') &&
|
||||||
|
!returnJson && // not a POST Request
|
||||||
|
!isDebugOn(vars) // Debug is not enabled
|
||||||
|
|
||||||
const webout = (await fileExists(weboutPath))
|
const webout = (await fileExists(weboutPath))
|
||||||
? fileResponse
|
? fileResponse
|
||||||
|
|||||||
Reference in New Issue
Block a user