-
Notifications
You must be signed in to change notification settings - Fork 570
Add a new /download/filename.ext method that is wget friendly #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Any comments on this? |
This feels like it could break some absurd things. |
I tried really hard with this page to NOT break backwards compatibility. This introduces a new download method, and maintains the old download method. I tried to go for the best of both worlds. What are you concerned it would break? |
Any updates on this? It really should be 100% backwards compatible. |
this is not backwards compatible no. from/this/mirror is no longer support at all -- which is a huge bc break -- why do you think its 100% backwards compatible? |
https://github.com/scottchiefbaker/web-php/blob/master/error.php#L157 I purposely did not touch any of that code. I simply added a NEW method to handle wget friendly links: https://github.com/scottchiefbaker/web-php/blob/master/error.php#L136 It might make more sense to put the new method in the other download method but the code already had a ton of options/exceptions so I separated it. |
711310c
to
2e0b117
Compare
Where do we stand on this? I just did a wget of the new PHP release and I got:
a |
bjori I just did |
I haven't tested this but this would be very useful new feature for php.net indeed... |
@bjori where do stand on this? Issue has been open for three years now. |
Comment on behalf of salathe at php.net: Let's put this one to bed. |
@php-pulls I'm not sure what your comment means. Is this issue getting addressed? Or is this a |
Won't fix. |
@salathe can you elaborate on why this isn't getting fixed? |
This patch addresses https://bugs.php.net/bug.php?id=69292 by creating a new routing method in error.php that handles file downloads by serving up files directly using
http://www.mirror.com/download/filename.ext
. This preserves all the original download methods, so existing links will not be affected.This patch also remaps the file download page to give out the new
/download/
style links.wget downloads will now output the correct filename.