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

Commit

Permalink
fix timeouts on expect continue
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 0218c58 commit 5c87751
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public final void start() throws Exception {
ctx.next();
return;
}

ctx.put("nexus_http_host", nexusHttpHost);

handlebars.render(ctx, "templates", "/http-disabled.hbs", res -> { // The '/' is somehow necessary.
Expand All @@ -126,6 +126,10 @@ 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"))
ctx.response().writeContinue();

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

if (proxy != null) {
Expand Down

0 comments on commit 5c87751

Please sign in to comment.