aboutsummaryrefslogtreecommitdiff
path: root/examples/cookie.c
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-11-15 18:01:45 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-11-15 18:01:45 +0300
commit32c1fbd2cf779a65e807d0d82412ffffa2401962 (patch)
treebb0020c18a72c4622e68258d8911956ecaca3765 /examples/cookie.c
parente6d5f9552e66ee2db3056e810b58b2bf82551356 (diff)
downloadmagi-32c1fbd2cf779a65e807d0d82412ffffa2401962.tar
magi-32c1fbd2cf779a65e807d0d82412ffffa2401962.tar.xz
magi-32c1fbd2cf779a65e807d0d82412ffffa2401962.zip
[magi]
Diffstat (limited to 'examples/cookie.c')
-rw-r--r--examples/cookie.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/cookie.c b/examples/cookie.c
index a2b9425..47929cb 100644
--- a/examples/cookie.c
+++ b/examples/cookie.c
@@ -11,12 +11,12 @@ void response_request(struct magi_request * req, struct magi_response * res)
struct magi_cookie_list * cookie;
magi_response_content_type(res, magi_xhtml);
- magi_response_content(res,
- "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' "
- "'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>"
- "<html xmlns='http://www.w3.org/1999/xhtml'>"
- "<head><title>Cookie Listing and Setting</title></head>"
- "<body>");
+ magi_response_content(
+ res, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' "
+ "'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>"
+ "<html xmlns='http://www.w3.org/1999/xhtml'>"
+ "<head><title>Cookie Listing and Setting</title></head>"
+ "<body>");
for (cookie = req->cookies; cookie; cookie = cookie->next) {
printf("[%s] = [%s]<br/>", cookie->item.name, cookie->item.data);