diff options
author | 2022-11-09 01:12:11 -0800 | |
---|---|---|
committer | 2022-11-09 01:12:35 -0800 | |
commit | 3a760ec0ece6e103733e1e41b7de8623997a56f6 (patch) | |
tree | af2d53fed05de884f76d39d7a4c687fd50d665e3 /src | |
parent | d90a638101921807d6dc8fca14fc39f843552983 (diff) | |
download | bun-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.zig | 5 |
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; |