1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-08 07:00:04 +00:00

fix(file): fixes response headers

This commit is contained in:
Saad Jutt
2022-02-20 06:18:44 +05:00
parent 3e6234e601
commit ef41691e40
7 changed files with 35 additions and 10 deletions

View File

@@ -148,7 +148,7 @@ ${program}`
? await readFile(headersPath)
: ''
const httpHeaders: HTTPHeaders = extractHeaders(headersContent)
const fileResponse: boolean = httpHeaders.hasOwnProperty('Content-Type')
const fileResponse: boolean = httpHeaders.hasOwnProperty('content-type')
const webout = (await fileExists(weboutPath))
? fileResponse