Skip to content

Commit ae9b8c7

Browse files
ljpengelenvietj
authored andcommitted
Revert "Align comment with implementation"
This reverts commit 8a50369.
1 parent b6f7b40 commit ae9b8c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vertx-web/src/main/java/io/vertx/ext/web/impl/RoutingContextImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public RoutingContextImpl(String mountPoint, RouterImpl router, HttpServerReques
7878

7979
if ((authority == null && request.version() != HttpVersion.HTTP_1_0) || path == null || path.isEmpty()) {
8080
// Authority must be present (HTTP/1.x host header // HTTP/2 :authority pseudo header)
81-
// HTTP paths must be present
81+
// HTTP paths must start with a '/'
8282
fail(400);
8383
} else if (path.charAt(0) != '/') {
84-
// For compatibility, we return `Not Found` when a path does not start with `/`
84+
// For compatiblity we return `Not Found` when a path does not start with `/`
8585
fail(404);
8686
}
8787
}

0 commit comments

Comments
 (0)