netlib_parseurl.c: Add a comment

This commit is contained in:
YAMAMOTO Takashi 2022-06-06 16:00:03 +09:00 committed by Petro Karashchenko
parent a5506b379c
commit a7de8dffe7

View File

@ -174,6 +174,11 @@ int netlib_parseurl(FAR const char *str, FAR struct url_s *url)
src++; src++;
} }
/* Note: the current implementation does not distinguish
* an empty path and "/". While it's fine for HTTP, maybe it's
* cleaner to move the HTTP-specific normalization to the caller.
*/
*dest++ = '/'; *dest++ = '/';
bytesleft--; bytesleft--;