pippinsplugins/Easy-Digital-Downloads — pull request #575 by bradyvercher (2012-12-15 10:32:45+00:00)
Title: Updates to edd_process_download()

Without a filter in `edd_process_download()` to allow custom arguments to be passed instead of expecting them directly from the URL, it's impossible to reuse any of its functionality short of removing the hook and copying the entire function to make modifications. Adding a filter like `edd_process_download_args` should help remedy that and allow for custom URLs to take advantage of that function.

One of these commits also fixes a minor bug decoding the `expire` arg and the other is just a small enhancement to use the core `nocache_headers()` function to deliver those headers.

At the very least, it seems like the mime type mapping should be abstracted into a separate function.