Phillip Barta
246f6f5aee
fix: Remove utils-merge dependency - use spread syntax instead ( #6091 )
2025-01-08 09:56:16 -06:00
Rich Hodgkins
69a4cf2819
deps: cookie@0.6.0
...
closes #5404
2024-03-15 10:27:45 -05:00
Douglas Christopher Wilson
92c5ce59f5
deps: cookie@0.5.0
2022-04-11 22:51:13 -04:00
Chris Barth
5855339455
Fix behavior of null/undefined as "maxAge" in res.cookie
...
fixes #3935
closes #3936
2022-03-26 23:11:48 -04:00
Douglas Christopher Wilson
a65913776d
tests: use strict mode
2022-02-09 01:07:08 -05:00
Douglas Christopher Wilson
bd4fdfe5f7
tests: remove global dependency on should
...
fixes #4797
2022-02-02 01:55:16 -05:00
3imed-jaberi
519126d732
deps: cookie@0.4.1
...
closes #4337
2021-11-16 21:59:01 -05:00
Douglas Christopher Wilson
d0421ac7e1
tests: use supertest to perform assertions
2018-10-26 23:34:00 -04:00
Douglas Christopher Wilson
dc8acc8676
tests: use supertest expect for simple assertions
2017-03-05 00:04:47 -05:00
Linus Unnebäck
bb84cf955f
tests: add test for signed cookie without secret
...
closes #2986
2016-05-10 11:54:52 -04:00
Douglas Christopher Wilson
ccc45a74f8
Merge tag '3.18.1'
2014-10-23 02:06:20 -04:00
Douglas Christopher Wilson
af1043844f
Fix internal utils.merge deprecation warnings
2014-10-22 15:18:10 -04:00
Douglas Christopher Wilson
db4448dda8
Merge tag '3.9.0'
2014-05-30 22:17:51 -04:00
Douglas Christopher Wilson
1f2e00ef8d
deps: should@~4.0.0
2014-05-29 22:53:59 -04:00
Jonathan Ong
328c6d3060
remove unnecessary test/support/http
...
backport of 643397ed21
2014-05-18 00:57:54 -04:00
Jonathan Ong
643397ed21
remove unnecessary test/support/http
2014-03-05 22:06:14 -08:00
Roman Shtylman
d42d8f5b07
move support for multiple res.cookie calls to lib/response
...
Patch.js is simpler and follows upstream node.js closer as a result.
2014-02-22 09:26:30 -05:00
Roman Shtylman
1396e0855d
remove last pieces of connect dependency
...
- copy over patch.js to shim ServerResponse
- bundle `static` middleware
2014-02-22 09:26:29 -05:00
Roman Shtylman
718e68ffae
use utils-merge module to mixin object properties
2014-01-24 19:16:37 -05:00
TJ Holowaychuk
37179109db
Revert "fix res.cookie() tests"
...
This reverts commit ed273448b9 .
2013-04-15 12:29:42 -07:00
TJ Holowaychuk
ed273448b9
fix res.cookie() tests
2013-04-12 12:13:12 -07:00
Greg Methvin
39ee6f8e79
Don't mangle the options object in res.cookie
...
Make a copy of the cookie options before mutating it to pass to
cookie.serialize. This prevents unexpected things from happening when
we try to use the same options object multiple times.
Also add a test to verify that the options object does not change
after a request is made.
2013-01-03 02:00:15 -05:00
TJ Holowaychuk
ab9c275bde
fix cookie max-age
...
the cookie module we depend on never used to
set this value, however now it does :)
2012-11-13 09:08:37 -08:00
Tony Edwards
0217e6ce96
Fix signed cookie prefix
...
Update res.cookie to prefix signed cookies with 's:'
2012-08-13 20:01:17 -07:00
TJ Holowaychuk
a50f02e87d
update cookie dep
2012-07-24 13:30:44 -07:00
TJ Holowaychuk
0f5560eebd
updated tests to use "supertest"
2012-06-26 17:14:07 -07:00
TJ Holowaychuk
ebf60d2340
coerce res.cookie values to strings
2012-06-06 12:34:51 -07:00
TJ Holowaychuk
02d43846f6
fixing cookies for connect 2.3.1
2012-06-06 12:25:14 -07:00
TJ Holowaychuk
1150a88001
Added { signed: true } option to res.cookie()
2012-05-27 11:51:32 -07:00
TJ Holowaychuk
386a9e88b4
removed old tests
2011-12-17 13:43:51 -08:00
TJ Holowaychuk
65042c86a6
removed the use of .include.string()
2011-12-17 12:02:34 -08:00
Tj Holowaychuk
ad1424681b
comment some tests
2011-11-24 14:31:42 -08:00
Tj Holowaychuk
7ac857acef
Added JSON cookie support & tests. Closes #879
2011-11-10 12:04:21 -08:00
Tj Holowaychuk
a3950b5638
Added maxAge test
2011-11-08 18:33:00 -08:00
Tj Holowaychuk
8c03428279
Added res.cookie() options test
2011-11-08 18:30:48 -08:00
Tj Holowaychuk
f4d7ea386d
Added res.cookie() "root" setting test
2011-11-08 18:28:59 -08:00
Tj Holowaychuk
bee0496cb1
Fixed res.cookie() path default
2011-11-08 18:28:22 -08:00
Tj Holowaychuk
5960b90efe
Added res.cookie() tests
2011-11-08 18:27:18 -08:00