diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-09-28 21:04:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-09-28 21:04:53 +0000 |
commit | d89c24fb9eeae98406ae184b040a958f509f99df (patch) | |
tree | 012ee6d669cb88f1e81e0c0e5cf1105f65db8b05 | |
parent | b2d6d2afe1a871a7905e2aaae71ff6e240529b33 (diff) | |
download | libmicrohttpd-d89c24fb9eeae98406ae184b040a958f509f99df.tar.gz libmicrohttpd-d89c24fb9eeae98406ae184b040a958f509f99df.zip |
unescape URIs
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/daemon/connection.c | 1 |
3 files changed, 5 insertions, 0 deletions
@@ -12,6 +12,7 @@ Heikki Lindholm <holindho@cs.helsinki.fi> | |||
12 | Alex Sadovsky <alexeysad@gmail.com> | 12 | Alex Sadovsky <alexeysad@gmail.com> |
13 | Greg Schohn <greg.schohn@gmail.com> | 13 | Greg Schohn <greg.schohn@gmail.com> |
14 | Thomas Martin <Thomas.Martin@rohde-schwarz.com> | 14 | Thomas Martin <Thomas.Martin@rohde-schwarz.com> |
15 | RuXu W <wrxzzj@gmail.com> | ||
15 | 16 | ||
16 | Documentation contributions also came from: | 17 | Documentation contributions also came from: |
17 | Marco Maggi <marco.maggi-ipsu@poste.it> | 18 | Marco Maggi <marco.maggi-ipsu@poste.it> |
@@ -1,3 +1,6 @@ | |||
1 | Sun Sep 28 14:57:46 MDT 2008 | ||
2 | Unescape URIs (convert "%ef%e4%45" to "中国"). | ||
3 | |||
1 | Wed Sep 10 22:43:59 MDT 2008 | 4 | Wed Sep 10 22:43:59 MDT 2008 |
2 | Releasing GNU libmicrohttpd 0.4.0pre0. -CG | 5 | Releasing GNU libmicrohttpd 0.4.0pre0. -CG |
3 | 6 | ||
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index c198b3c1..08e9367c 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -1033,6 +1033,7 @@ parse_initial_message_line (struct MHD_Connection *connection, char *line) | |||
1033 | args++; | 1033 | args++; |
1034 | parse_arguments (MHD_GET_ARGUMENT_KIND, connection, args); | 1034 | parse_arguments (MHD_GET_ARGUMENT_KIND, connection, args); |
1035 | } | 1035 | } |
1036 | MHD_http_unescape(uri); | ||
1036 | connection->url = uri; | 1037 | connection->url = uri; |
1037 | if (httpVersion == NULL) | 1038 | if (httpVersion == NULL) |
1038 | connection->version = ""; | 1039 | connection->version = ""; |