Needs work
Project:
Media Browser Plus
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Oct 2015 at 10:49 UTC
Updated:
19 Nov 2015 at 08:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gfed commentedUpon further investigation, it appears not setting the mimetype entirely works perfectly well in modern browsers.
Comment #3
das-peter commentedI'd like to keep the headers as all code, I know of, aims to provide proper headers, trusting the guessing power of the browser (modern or not) doesn't seem like the best idea.
Could you please test if these headers work for you:
Adding
application/octet-streamapparently tells the browser to figure it out on its own if it's not happy with the previous header.According to all information I found on a quick search
application/zipis a viable and valid content header, so if something goes wrong I'd say it's not the header :|The currently used content type is registered with iana: https://www.iana.org/assignments/media-types/application/zip which should make it a valid media type according to http://tools.ietf.org/html/rfc2616#section-14.17 -> http://tools.ietf.org/html/rfc2616#section-3.7 -> http://tools.ietf.org/html/rfc1590
http://stackoverflow.com/questions/20100445/zip-file-content-type-for-ht...
http://stackoverflow.com/questions/6977544/rar-zip-files-mime-type
Comment #4
gfed commentedThose headers indeed get the job done, nothing corrupted, awesome.