Skip to content

Commit eff2df1

Browse files
danielmcqbmeck
authored andcommitted
Fixed a call to the Cookie() constructor which was failing tests. Added 'new' keyword to the call.
1 parent f119e14 commit eff2df1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cookiejar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
i,
249249
cookie;
250250
cookies = cookies.map(function(item){
251-
return Cookie(item, request_domain, request_path);
251+
return new Cookie(item, request_domain, request_path);
252252
});
253253
for (i = 0; i < cookies.length; i += 1) {
254254
cookie = cookies[i];

0 commit comments

Comments
 (0)