Commit 12953212918e71aedb251f62ccf616d8c78e0f2a

Authored by Georg Hopp
1 parent e4975a92

add cookie header again

Showing 1 changed file with 11 additions and 3 deletions
@@ -75,10 +75,18 @@ httpResponseMe(int value) @@ -75,10 +75,18 @@ httpResponseMe(int value)
75 sizeof("Content-Type")-1, 75 sizeof("Content-Type")-1,
76 "text/html", 76 "text/html",
77 sizeof("text/html")-1)); 77 sizeof("text/html")-1));
78 -/* httpHeaderAdd(&(message->header),  
79 - new(HttpHeader, "Set-Cookie", "name=\"Georg Hopp\""));  
80 httpHeaderAdd(&(message->header), 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 message->type = HTTP_MESSAGE_BUFFERED; 91 message->type = HTTP_MESSAGE_BUFFERED;
84 message->nbody = sizeof(RESP_DATA)-1-2; 92 message->nbody = sizeof(RESP_DATA)-1-2;
Please register or login to post a comment