[ci] format
This commit is contained in:
parent
a5caf08e24
commit
6d0b0597bd
2 changed files with 5 additions and 5 deletions
|
@ -56,10 +56,10 @@ export const createExports = (manifest: SSRManifest, args: Args) => {
|
|||
};
|
||||
|
||||
const rawPacked = (response.headers as HeadersWithRaw).raw();
|
||||
if('set-cookie' in rawPacked) {
|
||||
if ('set-cookie' in rawPacked) {
|
||||
fnResponse.multiValueHeaders = {
|
||||
'set-cookie': rawPacked['set-cookie']
|
||||
}
|
||||
'set-cookie': rawPacked['set-cookie'],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,12 +39,12 @@ describe('Cookies', () => {
|
|||
headers: {},
|
||||
rawUrl: 'http://example.com/login',
|
||||
body: '{}',
|
||||
isBase64Encoded: false
|
||||
isBase64Encoded: false,
|
||||
});
|
||||
expect(resp.statusCode).to.equal(301);
|
||||
expect(resp.headers.location).to.equal('/');
|
||||
expect(resp.multiValueHeaders).to.be.deep.equal({
|
||||
'set-cookie': [ 'foo=foo; HttpOnly', 'bar=bar; HttpOnly' ]
|
||||
'set-cookie': ['foo=foo; HttpOnly', 'bar=bar; HttpOnly'],
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue