From 5af8a164e685fdd42bf1123e112b5e2bf482deb8 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Sun, 10 Jul 2016 18:44:23 -0700 Subject: [PATCH] Use `getAll` for existing cookies --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index e95bcf7..d62e6fe 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -277,7 +277,7 @@ function falsey () { */ function getAttachCookies (request: Request, options: Options): (url: string) => Promise { const { jar } = options - const cookie = request.get('Cookie') + const cookie = request.getAll('Cookie') if (!jar) { return () => Promise.resolve()