Showing
1 changed file
with
11 additions
and
3 deletions
... | ... | @@ -75,10 +75,18 @@ httpResponseMe(int value) |
75 | 75 | sizeof("Content-Type")-1, |
76 | 76 | "text/html", |
77 | 77 | sizeof("text/html")-1)); |
78 | -/* httpHeaderAdd(&(message->header), | |
79 | - new(HttpHeader, "Set-Cookie", "name=\"Georg Hopp\"")); | |
80 | 78 | httpHeaderAdd(&(message->header), |
81 | - new(HttpHeader, "Set-Cookie", "profession=\"coder\""));*/ | |
79 | + new(HttpHeader, | |
80 | + "Set-Cookie", | |
81 | + sizeof("Set-Cookie")-1, | |
82 | + "name=\"Georg Hopp\"", | |
83 | + sizeof("name=\"Georg Hopp\"")-1)); | |
84 | + httpHeaderAdd(&(message->header), | |
85 | + new(HttpHeader, | |
86 | + "Set-Cookie", | |
87 | + sizeof("Set-Cookie")-1, | |
88 | + "profession=\"coder\"", | |
89 | + sizeof("profession=\"coder\"")-1)); | |
82 | 90 | |
83 | 91 | message->type = HTTP_MESSAGE_BUFFERED; |
84 | 92 | message->nbody = sizeof(RESP_DATA)-1-2; | ... | ... |
Please
register
or
login
to post a comment