diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-03-13 19:32:17 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-03-13 19:32:17 +0300 |
commit | c5d69441bd43ace9d9c2b03a89aa0ed4871c288d (patch) | |
tree | 2577a813f8cf65bb0bbdb212da73e78af3bff58d /examples | |
parent | ac5114fdf74099a8ce8b9c154231e226e6883b94 (diff) | |
download | magi-c5d69441bd43ace9d9c2b03a89aa0ed4871c288d.tar magi-c5d69441bd43ace9d9c2b03a89aa0ed4871c288d.tar.xz magi-c5d69441bd43ace9d9c2b03a89aa0ed4871c288d.zip |
[magi] Cookies almost work.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cookie.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/cookie.c b/examples/cookie.c index 601c901..0492e1b 100644 --- a/examples/cookie.c +++ b/examples/cookie.c @@ -7,7 +7,11 @@ void list_cookies(magi_request *r) magi_response(r, "Cookies:"); for (current = r->cookies; current; current = current->next) { magi_cookie *c = ¤t->item; - magi_response_format(r, "<br/>[%s] = [%s]", c->name, c->data); + magi_response(r, "<br/>["); + magi_response(r, c->name); + magi_response(r, "] = ["); + magi_response(r, c->data); + magi_response(r, "]"); } } |