aboutsummaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2011-11-24 23:28:54 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-24 23:31:19 +0100
commit2c905fd1f8200349667dc990a17daf37214700bf (patch)
tree2ca084e15c43f9c1ac1eff3a63da41ee62ac089b /lib/pop3.c
parent4403e82f32de9b339cdacea6989e4a827a7b3a02 (diff)
query-part: ignore the URI part for given protocols
By setting PROTOPT_NOURLQUERY in the protocol handler struct, the protocol will get the "query part" of the URL cut off before the data is handled by the protocol-specific code. This makes libcurl adhere to RFC3986 section 2.2. Test 1220 is added to verify a file:// URL with query-part.
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index 6cda3bc5a..8fd8ab01f 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -125,7 +125,7 @@ const struct Curl_handler Curl_handler_pop3 = {
ZERO_NULL, /* readwrite */
PORT_POP3, /* defport */
CURLPROTO_POP3, /* protocol */
- PROTOPT_CLOSEACTION /* flags */
+ PROTOPT_CLOSEACTION | PROTOPT_NOURLQUERY /* flags */
};
@@ -151,7 +151,8 @@ const struct Curl_handler Curl_handler_pop3s = {
ZERO_NULL, /* readwrite */
PORT_POP3S, /* defport */
CURLPROTO_POP3 | CURLPROTO_POP3S, /* protocol */
- PROTOPT_CLOSEACTION | PROTOPT_SSL /* flags */
+ PROTOPT_CLOSEACTION | PROTOPT_SSL
+ | PROTOPT_NOURLQUERY /* flags */
};
#endif