-
-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Description
The HTTP Content-Location
and Content-Disposition
headers are currently unsupported. Many download scripts on the server side serve files this way, which means that it's cookie/session dependent and, more importantly, might not be reproducible for other users depending on what the session returned.
In order to minimize the amount of potential reproducibility issues, the current plan is to treat files serving these types of contents as URLs that redirect, and that these files themselves do not serve any content.
Necessary stealth/Request modifications:
-
Content-Location
should fire aredirect
for the current URL (including its parameters). - If
Content-Disposition
isinline
, delete the header and ignore it. - If
Content-Disposition
isattachment
, parse outfilename=
parameter, append it to the current URL, and fire aredirect
event. - If
Content-Disposition
isattachment
, and bothfilename*
andfilename
are present as a parameter, deletefilename*
. - If
Content-Disposition
isattachment
, and onlyfilename*
is present as a parameter, parse out the header value according to RFC5987.
Metadata
Metadata
Assignees
Labels
No labels