File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1+ unreleased
2+ ==========
3+
4+ * deps: cookie@0.6.0
5+
164.18.3 / 2024-02-29
27==========
38
611 - Fix strict json error message on Node.js 19+
712 - deps: content-type@~ 1.0.5
813 - deps: raw-body@2.5.2
14+ * deps: cookie@0.6.0
15+ - Add ` partitioned ` option
916
10174.18.2 / 2022-10-08
1118===================
Original file line number Diff line number Diff line change 3333 "body-parser" : " 1.20.2" ,
3434 "content-disposition" : " 0.5.4" ,
3535 "content-type" : " ~1.0.4" ,
36- "cookie" : " 0.5 .0" ,
36+ "cookie" : " 0.6 .0" ,
3737 "cookie-signature" : " 1.0.6" ,
3838 "debug" : " 2.6.9" ,
3939 "depd" : " 2.0.0" ,
Original file line number Diff line number Diff line change @@ -82,6 +82,22 @@ describe('res', function(){
8282 } )
8383 } )
8484
85+ describe ( 'partitioned' , function ( ) {
86+ it ( 'should set partitioned' , function ( done ) {
87+ var app = express ( ) ;
88+
89+ app . use ( function ( req , res ) {
90+ res . cookie ( 'name' , 'tobi' , { partitioned : true } ) ;
91+ res . end ( ) ;
92+ } ) ;
93+
94+ request ( app )
95+ . get ( '/' )
96+ . expect ( 'Set-Cookie' , 'name=tobi; Path=/; Partitioned' )
97+ . expect ( 200 , done )
98+ } )
99+ } )
100+
85101 describe ( 'maxAge' , function ( ) {
86102 it ( 'should set relative expires' , function ( done ) {
87103 var app = express ( ) ;
You can’t perform that action at this time.
0 commit comments