1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix failing tests-sanitize-memory-clang (regression after 9047f7c)

This commit is contained in:
Delyan Angelov 2023-07-18 02:35:01 +03:00
parent bf98f7c9ee
commit ef049839ab
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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)