Skip to content

Commit ac5db45

Browse files
author
Guy Bedford
committed
fixup
1 parent af2d6d8 commit ac5db45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/fastly/builtins/fetch/request-response.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,8 @@ bool RequestOrResponse::extract_body(JSContext *cx, JS::HandleObject self,
835835
}
836836

837837
auto boundary = MultipartFormData::boundary(encoder);
838-
839-
host_type_str = host_api::HostString("multipart/form-data; boundary=" + boundary);
838+
std::string content_type_str = "multipart/form-data; boundary=" + boundary;
839+
host_type_str = host_api::HostString(content_type_str.c_str());
840840

841841
auto length = MultipartFormData::query_length(cx, encoder);
842842
if (length.isErr()) {

0 commit comments

Comments
 (0)