Allow nsInputStreamChannel to have an arbitrary content type set on it
Categories
(Core :: Networking, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
Details
(Whiteboard: [fidefe-device-migration][necko-triaged])
Attachments
(1 file)
nsInputStreamChannel inherits from nsBaseChannel, meaning that it inherits the nsBaseChannel SetContentType
method. That method parses the passed in content type with net_ParseContentType here, and this means that anything after a ;
will be truncated from the content type.
I'd like to propose that we override the SetContentType
method to skip this parsing / truncation. The reason for this is that I'd like to feed an nsIInputStream into the multipart/mixed stream converter (which only accepts an nsIChannel as its source of bytes), and the multipart/mixed stream converter expects the content type to include boundary information after the MIME type.
Updated•5 months ago
|
Assignee | ||
Updated•5 months ago
|
Assignee | ||
Comment 1•5 months ago
|
||
This allows us to craft an nsIInputStreamChannel that can be used with the
multipart/mixed stream converter.
Updated•5 months ago
|
Comment 3•5 months ago
|
||
bugherder |
Description
•