1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-11 16:20:06 +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

@@ -12,8 +12,8 @@ describe('extractHeaders', () => {
`)
expect(headers).toEqual({
'Content-type': 'application/zip',
'Cache-Control': 'public, max-age=1000'
'content-type': 'application/zip',
'cache-control': 'public, max-age=1000'
})
})
@@ -25,7 +25,7 @@ describe('extractHeaders', () => {
Content-type:
`)
expect(headers).toEqual({ 'Cache-Control': 'public, max-age=1000' })
expect(headers).toEqual({ 'cache-control': 'public, max-age=1000' })
})
it('should return only valid http headers', () => {