{"action":"created","issue":{"url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/1746","labels_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/1746/labels{/name}","comments_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/1746/comments","events_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/1746/events","html_url":"https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1746","id":34581252,"number":1746,"title":"Double slash absolute url in links gives an error","user":{"login":"chrisc0","id":1681461,"avatar_url":"https://avatars.githubusercontent.com/u/1681461?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisc0","html_url":"https://github.com/chrisc0","followers_url":"https://api.github.com/users/chrisc0/followers","following_url":"https://api.github.com/users/chrisc0/following{/other_user}","gists_url":"https://api.github.com/users/chrisc0/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisc0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisc0/subscriptions","organizations_url":"https://api.github.com/users/chrisc0/orgs","repos_url":"https://api.github.com/users/chrisc0/repos","events_url":"https://api.github.com/users/chrisc0/events{/privacy}","received_events_url":"https://api.github.com/users/chrisc0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/labels/Duplicate","name":"Duplicate","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-05-29T18:47:52Z","updated_at":"2015-03-06T00:57:50Z","closed_at":"2014-05-29T22:23:50Z","body":"If my html has a link like this:\r\n\r\n**src=\"//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js\"**\r\n\r\nwkhtmltopdf gives the error \"Exit with code 1 due to network error: ProtocolInvalidOperationError\"."},"comment":{"url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/comments/77486310","html_url":"https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1746#issuecomment-77486310","issue_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/1746","id":77486310,"user":{"login":"BrunoDeBarros","id":5393,"avatar_url":"https://avatars.githubusercontent.com/u/5393?v=3","gravatar_id":"","url":"https://api.github.com/users/BrunoDeBarros","html_url":"https://github.com/BrunoDeBarros","followers_url":"https://api.github.com/users/BrunoDeBarros/followers","following_url":"https://api.github.com/users/BrunoDeBarros/following{/other_user}","gists_url":"https://api.github.com/users/BrunoDeBarros/gists{/gist_id}","starred_url":"https://api.github.com/users/BrunoDeBarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrunoDeBarros/subscriptions","organizations_url":"https://api.github.com/users/BrunoDeBarros/orgs","repos_url":"https://api.github.com/users/BrunoDeBarros/repos","events_url":"https://api.github.com/users/BrunoDeBarros/events{/privacy}","received_events_url":"https://api.github.com/users/BrunoDeBarros/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T00:57:50Z","updated_at":"2015-03-06T00:57:50Z","body":"I'm sorry for bumping this a few months later, but, I just came across this issue after being burned by this exact same thing, and saw @sanmai's comment about some things being accessible over HTTPS and not HTTP. The thing is that if it's only accessible over HTTPS, then the protocol-relative URL wouldn't be used; they'd always use https://, otherwise it'd break when loading the page over HTTP from a browser. \r\n\r\nWhen someone uses a protocol-relative URL, it is -known- that the resource is available over both HTTP and HTTPS. If it wasn't, they wouldn't be using it. Is there really any situation where it doesn't make sense to fall back to HTTP every time this is encountered? It just seems like silly default behavior that'll burn everyone, even if it's documented."}}