{"issue":{"pull_request":{"diff_url":"https://github.com/rails/rails/pull/3660.diff","html_url":"https://github.com/rails/rails/pull/3660","patch_url":"https://github.com/rails/rails/pull/3660.patch"},"state":"open","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a9e5ce6f28587baa2a566eb4f2d76c13?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a9e5ce6f28587baa2a566eb4f2d76c13","url":"https://api.github.com/users/jdelStrother","login":"jdelStrother","id":2377},"labels":[],"updated_at":"2011-11-17T15:49:55Z","assignee":null,"comments":8,"closed_at":null,"url":"https://api.github.com/repos/rails/rails/issues/3660","body":"Hi,\r\n\r\nI've been running into a number of problems with 3.1's protocol-relative urls.  They've been fine when used in stylesheets & javascript (which is fortunate, or we'd have to have a different asset cache for http & https), but I'm less convinced about their benefit when used in templates.\r\n\r\nMany RSS readers seem completely flummoxed by them, and a number of our api clients don't behave nicely with them.\r\n\r\n\r\nI came across default_asset_host_protocol - https://github.com/rails/rails/commit/0e5891ad918ea975f8687d6d47aed5543afc7441.  The commit even mentions that it's best to keep it unset, yet the Sprockets railtie sets it to :relative (https://github.com/rails/rails/blob/master/actionpack/lib/sprockets/railtie.rb)\r\n\r\nI've set `config.action_controller.default_asset_host_protocol = nil` in my own config, which seems to work fine - assets are still generated referencing \"//example.com/foo.jpg\" images, and templates use the request protocol for their asset paths.  Any thoughts on just deleting the railtie setting as in the attached commit?\r\n","html_url":"https://github.com/rails/rails/issues/3660","title":"default_asset_host_protocol should not default to :relative","number":3660,"id":2267882,"created_at":"2011-11-17T11:51:20Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/a9e5ce6f28587baa2a566eb4f2d76c13?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a9e5ce6f28587baa2a566eb4f2d76c13","url":"https://api.github.com/users/jdelStrother","login":"jdelStrother","id":2377},"updated_at":"2011-11-17T15:49:55Z","url":"https://api.github.com/repos/rails/rails/issues/comments/2777526","body":"Hmm, that doesn't sound good.  I can't reproduce it though - say you have an image_path in your ssl view.  When IE requests the page, `has_request? => true` and `default_protocol => :request`, so we'll use absolute urls with the request's protocol.  That's what we want, right?","id":2777526,"created_at":"2011-11-17T15:49:55Z"}}