aboutsummaryrefslogtreecommitdiff
path: root/src/examples/mhd2spdy_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/mhd2spdy_http.c')
-rw-r--r--src/examples/mhd2spdy_http.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/examples/mhd2spdy_http.c b/src/examples/mhd2spdy_http.c
index 2e9df268..2c8d4c23 100644
--- a/src/examples/mhd2spdy_http.c
+++ b/src/examples/mhd2spdy_http.c
@@ -27,6 +27,8 @@
27 27
28void * http_log_cb(void * cls, const char * uri) 28void * http_log_cb(void * cls, const char * uri)
29{ 29{
30 (void)cls;
31
30 struct HTTP_URI * http_uri; 32 struct HTTP_URI * http_uri;
31 33
32 PRINT_INFO2("log uri '%s'\n", uri); 34 PRINT_INFO2("log uri '%s'\n", uri);
@@ -55,6 +57,8 @@ http_iterate_cb(void *cls,
55 enum MHD_ValueKind kind, 57 enum MHD_ValueKind kind,
56 const char *name, const char *value) 58 const char *name, const char *value)
57{ 59{
60 (void)kind;
61
58 static char * const forbidden[] = {"Transfer-Encoding", 62 static char * const forbidden[] = {"Transfer-Encoding",
59 "Proxy-Connection", 63 "Proxy-Connection",
60 "Keep-Alive", 64 "Keep-Alive",
@@ -84,6 +88,8 @@ http_response_callback (void *cls,
84 char *buffer, 88 char *buffer,
85 size_t max) 89 size_t max)
86{ 90{
91 (void)pos;
92
87 int ret; 93 int ret;
88 struct Proxy *proxy = (struct Proxy *)cls; 94 struct Proxy *proxy = (struct Proxy *)cls;
89 void *newbody; 95 void *newbody;
@@ -207,6 +213,11 @@ http_cb_request (void *cls,
207 size_t *upload_data_size, 213 size_t *upload_data_size,
208 void **ptr) 214 void **ptr)
209{ 215{
216 (void)cls;
217 (void)url;
218 (void)upload_data;
219 (void)upload_data_size;
220
210 //struct MHD_Response *response; 221 //struct MHD_Response *response;
211 int ret; 222 int ret;
212 struct Proxy *proxy; 223 struct Proxy *proxy;