Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tsegismont authored Nov 18, 2024
1 parent aa58a59 commit 044c8a1
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@
import io.vertx.ext.web.handler.impl.UserHolder;

import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -85,12 +81,12 @@ void route() {
String message = HttpVersion.HTTP_1_1 == request.version() ?
"For HTTP/1.x requests, the 'Host' header is required" :
"For HTTP/2 requests, the ':authority' pseudo-header is required";
fail(400, new VertxException(message), true);
fail(400, new VertxException(message, true));
return;
}

if (path == null || path.isEmpty()) {
fail(400, new VertxException("The request path must start with '/' and cannot be empty"), true);
fail(400, new VertxException("The request path must start with '/' and cannot be empty", true));
return;
}

Expand Down

0 comments on commit 044c8a1

Please sign in to comment.