Hey,
Thanks for your continued maintenance of HttpClient!
I've been using the Multipart functionality in Network.HTTP.Client.MultipartFormData and noticed it insists on setting the Content-Type of a file part, derived from its file extension. Would you consider disabling that or giving a way to unset it? I'd like to use custom content-types or even leave them out.
Perhaps if the implementation set a default header in the Part constructor instead of a separate Part field, it'd be more general to also overwrite via a hypothetical modifyHeaders accessor. Seems a tad odd for that header to be special-cased in the first place.
Thanks!
Hey,
Thanks for your continued maintenance of HttpClient!
I've been using the Multipart functionality in
Network.HTTP.Client.MultipartFormDataand noticed it insists on setting the Content-Type of a file part, derived from its file extension. Would you consider disabling that or giving a way to unset it? I'd like to use custom content-types or even leave them out.Perhaps if the implementation set a default header in the
Partconstructor instead of a separatePartfield, it'd be more general to also overwrite via a hypotheticalmodifyHeadersaccessor. Seems a tad odd for that header to be special-cased in the first place.Thanks!