diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-07-09 17:20:37 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-07-09 17:20:37 +0300 |
commit | 681ca375fd5af01501a91a78214ab7a26ad67ac7 (patch) | |
tree | cdf464f5001ce891e1129e07fc97253c9b321cb5 /libbutl/url.mxx | |
parent | 726f4573a5d183a685e0a1032a3e247e3b47482e (diff) |
Make basic_url(string) ctor to consider empty string as invalid argument
Diffstat (limited to 'libbutl/url.mxx')
-rw-r--r-- | libbutl/url.mxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libbutl/url.mxx b/libbutl/url.mxx index a81162c..c696eaa 100644 --- a/libbutl/url.mxx +++ b/libbutl/url.mxx @@ -254,12 +254,11 @@ LIBBUTL_MODEXPORT namespace butl // basic_url () = default; - // Create the URL object from its string representation. If the argument is - // empty, then create an empty object. Otherwise verify that the string is - // compliant to the generic URL syntax. URL-decode and validate components - // with common for all schemes syntax (scheme, host, port, path). - // Throw std::invalid_argument if the passed string is not a valid URL - // representation. + // Create the URL object from its string representation. Verify that the + // string is compliant to the generic URL syntax. URL-decode and validate + // components with common for all schemes syntax (scheme, host, port, + // path). Throw std::invalid_argument if the passed string is not a valid + // URL representation. // // Validation and URL-decoding of the scheme-specific components can be // provided by a custom url_traits::translate_scheme() implementation. |