mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 18:12:55 +03:00
Issue #37 [0] argued that coap_split_uri() should not change the string that was passed as its first argument. The old behavior was to normalize the scheme and the host part of the given URI by converting both to lower case. This commit drops that normalization step and leaves the original string as is. As a consequence, implementations that employ virtual hosts now must canonicalize the host part by themselves. CAUTION: The constness is not (yet) reflected in the str components of the result parameter of type coap_uri_t. Care must be taken not to accidently change an immutable component of the coap_uri_t object. [0] https://github.com/obgm/libcoap/issues/37