You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 separatePart
field, it'd be more general to also overwrite via a hypotheticalmodifyHeaders
accessor. Seems a tad odd for that header to be special-cased in the first place.Thanks!
The text was updated successfully, but these errors were encountered: