-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Yes, I would need to support "application/octet-stream" in the Swift generator.
Describe the solution you'd like
- In
URLSessionRequestBuilder.execute(), check ifcontentType.hasPrefix("application/octet-stream")and initializeOctetStreamEncoding() - Create a new
OctetStreamEncodingclass - Duplicate
FormURLEncodingcontent and replace "application/x-www-form-urlencoded" by "application/octet-stream" toOctetStreamEncoding
Describe alternatives you've considered
Override URLSessionRequestBuilder.execute() but it will duplicate too many lines
Additional context
I need to be able to upload a file into a server accepting only content-type: "application/octet-stream"
Reactions are currently unavailable