aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-09 01:12:11 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-09 01:12:35 -0800
commit3a760ec0ece6e103733e1e41b7de8623997a56f6 (patch)
treeaf2d53fed05de884f76d39d7a4c687fd50d665e3 /src
parentd90a638101921807d6dc8fca14fc39f843552983 (diff)
downloadbun-3a760ec0ece6e103733e1e41b7de8623997a56f6.tar.gz
bun-3a760ec0ece6e103733e1e41b7de8623997a56f6.tar.zst
bun-3a760ec0ece6e103733e1e41b7de8623997a56f6.zip
Update response.zig
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/webcore/response.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bun.js/webcore/response.zig b/src/bun.js/webcore/response.zig
index 0bb776d6c..3e6d954ae 100644
--- a/src/bun.js/webcore/response.zig
+++ b/src/bun.js/webcore/response.zig
@@ -5384,12 +5384,11 @@ pub const Request = struct {
if (this.uws_request) |req| {
if (this.base_url_string_for_joining.len > 0) {
- const str = try strings.append(bun.default_allocator, this.base_url_string_for_joining, req.url());
- this.url = str;
+ this.url = try strings.append(bun.default_allocator, this.base_url_string_for_joining, req.url());
+ this.url_was_allocated = true;
// don't keep this around when we don't need it
this.base_url_string_for_joining = "";
- this.url_was_allocated = true;
} else {
this.url = try bun.default_allocator.dupe(u8, req.url());
this.url_was_allocated = true;