aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-12-06 15:52:55 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-12-06 15:52:55 +0300
commitb9a0844fe25cf717cdd796018bea2ae6eff58896 (patch)
tree1b536fe348ac33c1e124152e3e77c9ef8df590d3 /examples
parent7bf4ef931b5d4007f12a19939b819a4d8fb31802 (diff)
downloadmagi-b9a0844fe25cf717cdd796018bea2ae6eff58896.tar
magi-b9a0844fe25cf717cdd796018bea2ae6eff58896.tar.xz
magi-b9a0844fe25cf717cdd796018bea2ae6eff58896.zip
[magi] change of cookies and tempfile callback
Diffstat (limited to 'examples')
-rw-r--r--examples/echo.c4
-rw-r--r--examples/upload.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/examples/echo.c b/examples/echo.c
index e9807f0..ca30ff7 100644
--- a/examples/echo.c
+++ b/examples/echo.c
@@ -22,10 +22,6 @@ void proceed_cookies(struct magi_cookie_list * cookies,
magi_response_add(response, "] for domain [");
magi_response_add(response, cookies->item.domain);
}
- if (cookies->item.port) {
- magi_response_add(response, "] for port [");
- magi_response_add(response, cookies->item.port);
- }
if (cookies->item.path) {
magi_response_add(response, "] for path [");
magi_response_add(response, cookies->item.path);
diff --git a/examples/upload.c b/examples/upload.c
index c61562a..a880c53 100644
--- a/examples/upload.c
+++ b/examples/upload.c
@@ -35,7 +35,7 @@ void response_request(struct magi_request * req, struct magi_response * res)
int main(int argc, char const * argv[])
{
struct magi_request request;
- struct magi_tempfiles tmps = { 0, 0, 0, 0 };
+ struct magi_tempfiles tmps = { 0, 0 };
magi_request_setup(&request);
magi_tempfiles_add(&tmps, "data", "data", 0);
magi_request_setup_tempfiles(&request, &tmps);