diff options
author | Péter Dimitrov <[email protected]> | 2017-10-27 14:14:22 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2017-10-27 14:59:06 +0200 |
commit | 3d12c8f164f79dd67967ba5c7df7d3c555dc0f29 (patch) | |
tree | a4ffbba31c99aab990f752c92df9f8b4858ab39d /lib/stdlib/test/property_test | |
parent | b0c682a8118c5775da784e9a0f569ee995319f80 (diff) | |
download | otp-3d12c8f164f79dd67967ba5c7df7d3c555dc0f29.tar.gz otp-3d12c8f164f79dd67967ba5c7df7d3c555dc0f29.tar.bz2 otp-3d12c8f164f79dd67967ba5c7df7d3c555dc0f29.zip |
stdlib: Allow undefined port in uri_map()
uri_map() updated to allow 'undefined' ports in order to align
the implementation with RFC 3986:
port = *DIGIT
An 'undefined' port is mapped to a ":" during recompose operation.
Diffstat (limited to 'lib/stdlib/test/property_test')
-rw-r--r-- | lib/stdlib/test/property_test/uri_string_recompose.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/stdlib/test/property_test/uri_string_recompose.erl b/lib/stdlib/test/property_test/uri_string_recompose.erl index 97f9d727a0..e51a671172 100644 --- a/lib/stdlib/test/property_test/uri_string_recompose.erl +++ b/lib/stdlib/test/property_test/uri_string_recompose.erl @@ -267,8 +267,9 @@ host_uri() -> %% Port, Query, Fragment %%------------------------------------------------------------------------- port() -> - range(1,65535). - + frequency([{10, undefined}, + {10, range(1,65535)} + ]). query_map() -> unicode(). |