empty strings don't have server names
This commit is contained in:
parent
d19ee8dba4
commit
eaf400490d
|
|
@ -374,6 +374,11 @@ set_url(const string &url, bool server_name_expected) {
|
|||
_url = url;
|
||||
_flags = 0;
|
||||
|
||||
if (url.empty()) {
|
||||
// No server name on an empty string.
|
||||
server_name_expected = false;
|
||||
}
|
||||
|
||||
// First, replace backslashes with forward slashes, since this is a
|
||||
// common mistake among Windows users.
|
||||
size_t p;
|
||||
|
|
|
|||
Loading…
Reference in New Issue