diff --git a/source/common/http/path_utility.h b/source/common/http/path_utility.h index 62be43e2e03fd..a6a99aaef78d7 100644 --- a/source/common/http/path_utility.h +++ b/source/common/http/path_utility.h @@ -12,15 +12,15 @@ namespace Http { */ class PathUtil { public: - // Returns if the normalization succeeds. - // If it is successful, the path header in header path will be updated with the normalized path. + // Returns true if the normalization succeeds. + // If it is successful, the path header will be updated with the normalized path. // Requires the Path header be present. static bool canonicalPath(RequestHeaderMap& headers); // Merges two or more adjacent slashes in path part of URI into one. // Requires the Path header be present. static void mergeSlashes(RequestHeaderMap& headers); // Removes the query and/or fragment string (if present) from the input path. - // For example, this function returns "/data" for the input path "/data#fragment?param=value". + // For example, this function returns "/data" for the input path "/data?param=value#fragment". static absl::string_view removeQueryAndFragment(const absl::string_view path); };