aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-07-13 08:44:49 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-07-13 08:44:49 +0300
commit915f37b5ad202dfeb51999faba5a2849318ebea2 (patch)
treeb281755545c935349565f9b2dedeedeee9fe3dc1
parent2aabe59373c29410c00ae59cd86cb475c961b56c (diff)
downloadmagi-915f37b5ad202dfeb51999faba5a2849318ebea2.tar
magi-915f37b5ad202dfeb51999faba5a2849318ebea2.tar.xz
magi-915f37b5ad202dfeb51999faba5a2849318ebea2.zip
Unnecessary headers removed.
-rw-r--r--examples/cookie.c1
-rw-r--r--examples/echo.c1
-rw-r--r--include/magi/response.h2
-rw-r--r--include/magi/urlenc.h4
-rw-r--r--man/magi_urlenc.32
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/cookie.c b/examples/cookie.c
index 7cb5f33..7253185 100644
--- a/examples/cookie.c
+++ b/examples/cookie.c
@@ -3,6 +3,7 @@
* showing work with headers in magi.
*/
#include <magi.h>
+#include <stdio.h>
void list_cookies(magi_request *r)
diff --git a/examples/echo.c b/examples/echo.c
index 4f6975a..3598986 100644
--- a/examples/echo.c
+++ b/examples/echo.c
@@ -1,6 +1,7 @@
/* This is useful example echoing request data in response.
*/
#include <magi.h>
+#include <stdio.h>
void list_cookies(magi_request *r)
diff --git a/include/magi/response.h b/include/magi/response.h
index 4867c2f..c38e3f9 100644
--- a/include/magi/response.h
+++ b/include/magi/response.h
@@ -9,8 +9,6 @@
*/
#include "cookie.h"
#include "param.h"
-#include <stdio.h>
-#include <stdarg.h>
/* Response headers as three sequential groups. */
diff --git a/include/magi/urlenc.h b/include/magi/urlenc.h
index 16310f2..d3f2ae6 100644
--- a/include/magi/urlenc.h
+++ b/include/magi/urlenc.h
@@ -6,8 +6,8 @@
* encoding itself and magi_urlenc_size to find what the size of code
* will be.
*
- * RFC 3986 describes URL-encoding. Briefly it is changing every space into
- * plus sign and every not alpha-numerical and not "~-._" character into
+ * RFC 3986 describes URL-encoding. Briefly it is replacement of every space
+ * into plus sign and every not alpha-numerical and not "~-._" character into
* percent sign followed by hexadecimal representation of given character.
*/
diff --git a/man/magi_urlenc.3 b/man/magi_urlenc.3
index ac0c798..ed919eb 100644
--- a/man/magi_urlenc.3
+++ b/man/magi_urlenc.3
@@ -19,7 +19,7 @@ for encoding itself.
.P
URL encoding is described in
.IR "RFC 3986" .
-Briefly it is changing every space into plus sign and every not
+Briefly it is replacement of every space into plus sign and every not
alpha-numerical or not one of "~-._" character into percent sign
followed by hexademical representation of given character byte.
.P