aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r--src/daemon/connection.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index 70e1ad91..7d973283 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -1066,6 +1066,12 @@ connection_add_header (struct MHD_Connection *connection,
1066} 1066}
1067 1067
1068/** 1068/**
1069 * Parse and unescape the arguments given by the client as part
1070 * of the HTTP request URI.
1071 *
1072 * @param kind header kind to use for adding to the connection
1073 * @param connection connection to add headers to
1074 * @param args argument URI string (after "?" in URI)
1069 * @return MHD_NO on failure (out of memory), MHD_YES for success 1075 * @return MHD_NO on failure (out of memory), MHD_YES for success
1070 */ 1076 */
1071static int 1077static int
@@ -1111,6 +1117,7 @@ parse_arguments (enum MHD_ValueKind kind,
1111 return MHD_YES; 1117 return MHD_YES;
1112} 1118}
1113 1119
1120
1114/** 1121/**
1115 * Parse the cookie header (see RFC 2109). 1122 * Parse the cookie header (see RFC 2109).
1116 * 1123 *
@@ -1238,7 +1245,7 @@ parse_initial_message_line (struct MHD_Connection *connection, char *line)
1238 connection->daemon->uri_log_callback (connection->daemon-> 1245 connection->daemon->uri_log_callback (connection->daemon->
1239 uri_log_callback_cls, uri); 1246 uri_log_callback_cls, uri);
1240 args = strstr (uri, "?"); 1247 args = strstr (uri, "?");
1241 if (args != NULL) 1248 if (NULL != args)
1242 { 1249 {
1243 args[0] = '\0'; 1250 args[0] = '\0';
1244 args++; 1251 args++;
@@ -1248,7 +1255,7 @@ parse_initial_message_line (struct MHD_Connection *connection, char *line)
1248 connection, 1255 connection,
1249 uri); 1256 uri);
1250 connection->url = uri; 1257 connection->url = uri;
1251 if (httpVersion == NULL) 1258 if (NULL == httpVersion)
1252 connection->version = ""; 1259 connection->version = "";
1253 else 1260 else
1254 connection->version = httpVersion; 1261 connection->version = httpVersion;