Skip to content

Commit

Permalink
ci: fix failing tests-sanitize-memory-clang (regression after 9047f7c)
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Jul 17, 2023
1 parent bf98f7c commit ef04983
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions vlib/net/http/request.v
Expand Up @@ -304,16 +304,9 @@ pub fn (err MultiplePathAttributesError) msg() string {
// HTTP request body. It is the inverse of parse_multipart_form. Returns
// (body, boundary).
// Note: Form keys should not contain quotes
[manualfree]
fn multipart_form_body(form map[string]string, files map[string][]FileData) (string, string) {
rboundary := rand.ulid()
defer {
unsafe { rboundary.free() }
}
mut sb := strings.new_builder(1024)
defer {
unsafe { sb.free() }
}
for name, value in form {
sb.write_string('\r\n--')
sb.write_string(rboundary)
Expand Down

0 comments on commit ef04983

Please sign in to comment.