support ? in urlspec better

This commit is contained in:
David Rose 2004-07-27 04:36:08 +00:00
parent 3ee305faf6
commit caac4723b9

View File

@ -488,8 +488,10 @@ set_url(const string &url, bool server_name_expected) {
}
// First, replace backslashes with forward slashes, since this is a
// common mistake among Windows users.
for (p = 0; p < _url.length(); p++) {
// common mistake among Windows users. But don't do this after an
// embedded question mark, which begins parameters sent directly to
// the host (and maybe these parameters should include backslashes).
for (p = 0; p < _url.length() && _url[p] != '?'; p++) {
if (_url[p] == '\\') {
_url[p] = '/';
}