Skip to content

Commit

Permalink
Fix directive remap-host to be effective.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Mar 25, 2020
1 parent 94f5b28 commit 05c2744
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/src/Machinery.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ Do_remap_host::Do_remap_host(Expr &&fmt) : _fmt(std::move(fmt)) {}
Errata Do_remap_host::invoke(Context &ctx) {
TextView host{std::get<IndexFor(STRING)>(ctx.extract(_fmt))};
ts::URL(ctx._remap_info->requestBufp, ctx._remap_info->requestUrl).host_set(host);
ctx._remap_status = TSREMAP_DID_REMAP;
return {};
}

Expand Down

0 comments on commit 05c2744

Please sign in to comment.