deref after null

This commit is contained in:
Jarred Sumner
2022-04-03 22:24:02 -07:00
parent 409758dd11
commit 931e461c87

View File

@@ -865,8 +865,8 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
if (response.body.init.headers) |headers_| {
this.writeHeaders(headers_);
has_content_disposition = headers_.has(&ZigString.init("content-disposition"));
headers_.deref();
response.body.init.headers = null;
headers_.deref();
}
if (needs_content_type) {