aboutsummaryrefslogtreecommitdiff
path: root/doc/chapters/processingpost.inc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/chapters/processingpost.inc')
-rw-r--r--doc/chapters/processingpost.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/chapters/processingpost.inc b/doc/chapters/processingpost.inc
index 920dac31..8f0dc7d8 100644
--- a/doc/chapters/processingpost.inc
+++ b/doc/chapters/processingpost.inc
@@ -111,10 +111,10 @@ requests other than @emph{POST} requests.
111 111
112@verbatim 112@verbatim
113void request_completed (void *cls, struct MHD_Connection *connection, 113void request_completed (void *cls, struct MHD_Connection *connection,
114 void **con_cls, 114 void **req_cls,
115 enum MHD_RequestTerminationCode toe) 115 enum MHD_RequestTerminationCode toe)
116{ 116{
117 struct connection_info_struct *con_info = *con_cls; 117 struct connection_info_struct *con_info = *req_cls;
118 118
119 if (NULL == con_info) return; 119 if (NULL == con_info) return;
120 if (con_info->connectiontype == POST) 120 if (con_info->connectiontype == POST)
@@ -124,7 +124,7 @@ void request_completed (void *cls, struct MHD_Connection *connection,
124 } 124 }
125 125
126 free (con_info); 126 free (con_info);
127 *con_cls = NULL; 127 *req_cls = NULL;
128} 128}
129@end verbatim 129@end verbatim
130@noindent 130@noindent
@@ -155,9 +155,9 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
155 const char *url, 155 const char *url,
156 const char *method, const char *version, 156 const char *method, const char *version,
157 const char *upload_data, 157 const char *upload_data,
158 size_t *upload_data_size, void **con_cls) 158 size_t *upload_data_size, void **req_cls)
159{ 159{
160 if(NULL == *con_cls) 160 if(NULL == *req_cls)
161 { 161 {
162 struct connection_info_struct *con_info; 162 struct connection_info_struct *con_info;
163 163
@@ -190,7 +190,7 @@ of the request is stored for convenience.
190The address of our structure will both serve as the indicator for successive iterations and to remember 190The address of our structure will both serve as the indicator for successive iterations and to remember
191the particular details about the connection. 191the particular details about the connection.
192@verbatim 192@verbatim
193 *con_cls = (void*) con_info; 193 *req_cls = (void*) con_info;
194 return MHD_YES; 194 return MHD_YES;
195 } 195 }
196@end verbatim 196@end verbatim
@@ -212,7 +212,7 @@ considered---all of it.
212@verbatim 212@verbatim
213 if (0 == strcmp (method, "POST")) 213 if (0 == strcmp (method, "POST"))
214 { 214 {
215 struct connection_info_struct *con_info = *con_cls; 215 struct connection_info_struct *con_info = *req_cls;
216 216
217 if (*upload_data_size != 0) 217 if (*upload_data_size != 0)
218 { 218 {