pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.33k stars 2.15k forks source link

Poco::URI: don't lowercase host part if it's a Unix domain socket #4468

Closed obiltschnig closed 6 months ago

obiltschnig commented 7 months ago

Some (non-standard) URI schemes for Unix domain sockets use the host part to specify the path of a Unix domain socket, e.g. http+unix://%2Ftmp%2FServerSocket/index.html. In such a case, the URI class should not change (convert to lower case) the host part, as file names are case sensitive on some platforms.

So if _host starts with a %, don't call toLowerInPlace() in URI::parseHostAndPort.