Searched hist:f4db7fdc68461d7d30abb6ae43fa762917963ce1 (Results 1 – 1 of 1) sorted by relevance
/haiku/src/tests/kits/net/service/ |
H A D | UrlTest.cpp | f4db7fdc68461d7d30abb6ae43fa762917963ce1 Sat Nov 05 11:58:01 UTC 2016 Adrien Destugues <pulkomandy@pulkomandy.tk> BUrl: allow URLs without protocol or authority again.
Parsing an URL can never fail. The regexp is designed to match any input. In the worst case, everything will end up in the "path" component. WebPositive relies on this to generate file URLs from a plain path.
URLs without a protocol are also possible, and can be used with an implicit protocol. A typical example is network shares sometimes noted in "//host.domain/path/file" form.
Add tests for these two cases and fix the parser to behave as expected.
|