Skip to content

Commit cfd26e1

Browse files
save file
1 parent d2575f8 commit cfd26e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blog/25-07-24/http-server/ex/login-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
];
99

1010
function request(req,res){
11-
console.log(req.method,req.url);
11+
console.log(req.method,req.url,req.headers.cookie);
1212
var path = req.url.slice(1);
1313

1414
switch(path){
@@ -119,7 +119,7 @@
119119
}//logout
120120

121121

122-
function parseCookies(hdr){
122+
function parse(hdr){
123123

124124
var cookies = {};
125125

0 commit comments

Comments
 (0)