This project is archived and is in readonly mode.
Protocol-relative URLs
-
Andrea Campi
Did you forget to attach the patch? :)
-
Stephen Celis
A WebKit nightly was giving me technical difficulties on Lighthouse. Attached :)
-
Andrea Campi
The patch looks good to me functionality-wise, but I have to say I'm not a big fan of:
unless options[:protocol] == falseIf I were to keep changes minimal, I'd write it as:
if protocol = options[:protocol].nil? ? 'http' : options[:protocol] rewritten_url << protocolMy preference would actually be to move the default protocol to
default_url_optionsin #initialize, which would simplify things--but that may be too invasive a change. -
Santiago Pastorino
- State changed from new to open
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale
-
Stephen Celis
- State changed from stale to open
- Assigned user set to Santiago Pastorino
[state:open]
This isn't a bug, it's a feature and I think it's still valid.
-
Santiago Pastorino
- Milestone set to 3.1
- Importance changed from to Low
Great, can you rebase the patch against master I'm going to apply it.
-
Stephen Celis
This should do it.
-
Repository
- State changed from open to committed
(from [a0757e00f3ec2925ee6fdd25498725acf66fae98]) Protocol-relative URL support.
[#5774 state:committed]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/a0757e00f3ec2925ee6fdd2549872...
