diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2011-11-24 23:28:54 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-11-24 23:31:19 +0100 |
commit | 2c905fd1f8200349667dc990a17daf37214700bf (patch) | |
tree | 2ca084e15c43f9c1ac1eff3a63da41ee62ac089b /lib/tftp.c | |
parent | 4403e82f32de9b339cdacea6989e4a827a7b3a02 (diff) | |
download | gnurl-2c905fd1f8200349667dc990a17daf37214700bf.tar.gz gnurl-2c905fd1f8200349667dc990a17daf37214700bf.tar.bz2 gnurl-2c905fd1f8200349667dc990a17daf37214700bf.zip |
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/tftp.c')
-rw-r--r-- | lib/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index 9b44a9b3d..370665a43 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -190,7 +190,7 @@ const struct Curl_handler Curl_handler_tftp = { ZERO_NULL, /* readwrite */ PORT_TFTP, /* defport */ CURLPROTO_TFTP, /* protocol */ - PROTOPT_NONE /* flags */ + PROTOPT_NONE | PROTOPT_NOURLQUERY /* flags */ }; /********************************************************** |