Skip to content

http POST: missing boundary with content-type "multipart/form-data" #2118

Description

Currently it is not possible to use "multipart/form-data" as content-type posting form-data with the http module due to missing boundary.

Example using the JS-API setting content-type by hand resulting in missing boundary:

return await http.fetch(url, {
    method: "POST",
    headers: {
        "Content-Type": "multipart/form-data",
    },
    responseType: 1,
    body: http.Body.form({
        name: "test"
    })
});

This might be an issue with attohttpc, leaving the content type blank the content-type defaults to "application/x-www-form-urlencoded".

I am using the latest version of tauri (1.0.0-beta.4).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions