Skip to content

Mime type of request RequestBody when content is a string should likely not be application/octet-stream #8

@vincentjames501

Description

@vincentjames501

It's pretty much always set to application/octet-stream which makes a lot of sense for byte-arrays, files, inputstreams, etc. But for Strings, we should consider following what is done in clj-http?

https://github.com/dakrone/clj-http/blob/3.x/src/clj_http/multipart.clj#L101

Rewriting ->request-body to be a defmulti would be nice too as it would allow people to extend the library more easily to support custom types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions