mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
netlib_parseurl.c: Add a comment
This commit is contained in:

committed by
Petro Karashchenko

parent
a5506b379c
commit
a7de8dffe7
@@ -174,6 +174,11 @@ int netlib_parseurl(FAR const char *str, FAR struct url_s *url)
|
||||
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++ = '/';
|
||||
bytesleft--;
|
||||
|
||||
|
Reference in New Issue
Block a user