Yay! On Tue, Nov 10, 2009 at 4:06 PM, Anne van Kesteren <annevk@opera.com> wrote: >>>> WebKit presently supports sending File. It does not support FileData >>>> yet. >>> >>> Is Content-Type set to anything specific if the author has not set it? >> >> // FIXME: Should we set a Content-Type if one is not set. >> >> ^^^ looks like it presently depends on the web page setting the C-T header >> manually :-/ I think that should be fixed to be based on the system's >> knowledge of the file's mime type. > > So far I have only added support for Blob (the new FileData) of these two > and set the Content-Type to application/octet-stream if not provided by the > Web author. Should I also add File and set the Content-Type to > File.mediaType? I definitely think so yes. Same thing for the send() function. On a separate note, is sending "application/octet-stream" really better than simply sending no Content-Type header at all when sending a Blob (or a File with empty mediaType)? / JonasReceived on Tuesday, 10 November 2009 15:49:10 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:43:22 GMT