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
+1 -1
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