mirror of
https://github.com/sasjs/server.git
synced 2026-01-06 14:10:06 +00:00
fix: return buffer in case of file response
This commit is contained in:
@@ -37,4 +37,16 @@ describe('extractHeaders', () => {
|
||||
|
||||
expect(headers).toEqual({})
|
||||
})
|
||||
|
||||
it('should return http headers if empty', () => {
|
||||
const headers = extractHeaders('')
|
||||
|
||||
expect(headers).toEqual({})
|
||||
})
|
||||
|
||||
it('should return http headers if not provided', () => {
|
||||
const headers = extractHeaders()
|
||||
|
||||
expect(headers).toEqual({})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user