{"action":"opened","issue":{"url":"https://api.github.com/repos/WyriHaximus/PhergieUrl/issues/5","labels_url":"https://api.github.com/repos/WyriHaximus/PhergieUrl/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/WyriHaximus/PhergieUrl/issues/5/comments","events_url":"https://api.github.com/repos/WyriHaximus/PhergieUrl/issues/5/events","html_url":"https://github.com/WyriHaximus/PhergieUrl/issues/5","id":56926548,"number":5,"title":"http -> https redirect results in endless loop","user":{"login":"hashworks","id":2362091,"avatar_url":"https://avatars.githubusercontent.com/u/2362091?v=3","gravatar_id":"","url":"https://api.github.com/users/hashworks","html_url":"https://github.com/hashworks","followers_url":"https://api.github.com/users/hashworks/followers","following_url":"https://api.github.com/users/hashworks/following{/other_user}","gists_url":"https://api.github.com/users/hashworks/gists{/gist_id}","starred_url":"https://api.github.com/users/hashworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashworks/subscriptions","organizations_url":"https://api.github.com/users/hashworks/orgs","repos_url":"https://api.github.com/users/hashworks/repos","events_url":"https://api.github.com/users/hashworks/events{/privacy}","received_events_url":"https://api.github.com/users/hashworks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-07T21:22:43Z","updated_at":"2015-02-07T21:22:43Z","closed_at":null,"body":"When posting a domain with a http -> https 301 redirect the plugin falls into an endless loop:\r\n\r\n```\r\n2015-02-07 22:15:40 DEBUG moonbasetest!moonbasetest@irc.rizon.net :hashworks!~hashworks@0Quoten3Ossi PRIVMSG moonbasetest :hashworks.net []\r\n2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Found url: hashworks.net []\r\n2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Corrected url: http://hashworks.net/ []\r\n2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Emitting: http.request []\r\n2015-02-07 22:15:40 DEBUG [Http]Creating new HttpClient []\r\n2015-02-07 22:15:40 DEBUG [Http]Requesting DNS Resolver []\r\n2015-02-07 22:15:40 DEBUG [Dns]dns.resolver called []\r\n2015-02-07 22:15:40 DEBUG [Dns]Creating new Resolver []\r\n2015-02-07 22:15:40 DEBUG [Http]DNS Resolver received []\r\n2015-02-07 22:15:40 DEBUG [Http]Requesting DNS Resolver []\r\n2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Sending request []\r\n2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Emitting: url.host.all []\r\n2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Writing body []\r\n2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Response received []\r\n2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Reponse (after 0.12431311607361s): 301 []\r\n2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Data received []\r\n2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Request done []\r\n2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Download complete (after 0.12470602989197s): 0 in length length []\r\n2015-02-07 22:15:41 DEBUG moonbasetest!moonbasetest@irc.rizon.net PRIVMSG moonbasetest :[ http://hashworks.net/ ] []\r\n2015-02-07 22:15:41 DEBUG moonbasetest!moonbasetest@irc.rizon.net :moonbasetest!~moonbaset@Rizon-E392224F.pool.mediaways.net PRIVMSG moonbasetest :[ http://hashworks.net/ ] []\r\n2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Found url: http://hashworks.net/ []\r\n2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Emitting: http.request []\r\n2015-02-07 22:15:41 DEBUG [Http]Existing HttpClient found, using it []\r\n2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Sending request []\r\n2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Emitting: url.host.all []\r\n2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Writing body []\r\n2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Response received []\r\n2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Reponse (after 0.11247301101685s): 301 []\r\n2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Data received []\r\n2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Request done []\r\n2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Download complete (after 0.11286997795105s): 0 in length length []\r\n<REPEAT>\r\n```\r\n\r\nThis is because it's messaging itself over and over again prefixed with the http protocol."}}