From a7de8dffe70641268005d9c694773c5f67a0f918 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 6 Jun 2022 16:00:03 +0900 Subject: [PATCH] netlib_parseurl.c: Add a comment --- netutils/netlib/netlib_parseurl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netutils/netlib/netlib_parseurl.c b/netutils/netlib/netlib_parseurl.c index f1ababe9e..ddb84a65a 100644 --- a/netutils/netlib/netlib_parseurl.c +++ b/netutils/netlib/netlib_parseurl.c @@ -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--;