Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
tidy up code
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Sillence authored and cmoroianu1 committed Aug 28, 2020
1 parent 5c87751 commit 7040980
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@ public final void start() throws Exception {
configureRouting(router);

router.route(ALL_PATHS).handler(ctx -> {
if (ctx.request().getHeader("Expect") != null &&
ctx.request().getHeader("Expect").contains("100-continue"))
String expectHeader = ctx.request().getHeader("Expect");
if (expectHeader != null &&
expectHeader.contains("100-continue")) {
ctx.response().writeContinue();
}

final NexusHttpProxy proxy = ((NexusHttpProxy) ctx.data().get(PROXY));

Expand Down

0 comments on commit 7040980

Please sign in to comment.