aboutsummaryrefslogtreecommitdiff
path: root/src/http.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.zig')
-rw-r--r--src/http.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http.zig b/src/http.zig
index 06eaf7a18..ffb7a3d72 100644
--- a/src/http.zig
+++ b/src/http.zig
@@ -1573,7 +1573,7 @@ pub const RequestContext = struct {
break :brk try ctx.bundler.buildFile(
&ctx.log,
ctx.allocator,
- ctx.url.path,
+ ctx.url.pathWithoutOrigin(ctx.bundler.options.origin),
ctx.url.extname,
true,
);
@@ -1581,7 +1581,7 @@ pub const RequestContext = struct {
break :brk try ctx.bundler.buildFile(
&ctx.log,
ctx.allocator,
- ctx.url.path,
+ ctx.url.pathWithoutOrigin(ctx.bundler.options.origin),
ctx.url.extname,
false,
);