Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

http -> https redirect results in endless loop #6

Open
svpernova09 opened this issue Nov 14, 2015 · 0 comments
Open

http -> https redirect results in endless loop #6

svpernova09 opened this issue Nov 14, 2015 · 0 comments

Comments

@svpernova09
Copy link
Member

When posting a domain with a http -> https 301 redirect the plugin falls into an endless loop:

2015-02-07 22:15:40 DEBUG moonbasetest!moonbasetest@irc.rizon.net :hashworks!~hashworks@0Quoten3Ossi PRIVMSG moonbasetest :hashworks.net []
2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Found url: hashworks.net []
2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Corrected url: http://hashworks.net/ []
2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Emitting: http.request []
2015-02-07 22:15:40 DEBUG [Http]Creating new HttpClient []
2015-02-07 22:15:40 DEBUG [Http]Requesting DNS Resolver []
2015-02-07 22:15:40 DEBUG [Dns]dns.resolver called []
2015-02-07 22:15:40 DEBUG [Dns]Creating new Resolver []
2015-02-07 22:15:40 DEBUG [Http]DNS Resolver received []
2015-02-07 22:15:40 DEBUG [Http]Requesting DNS Resolver []
2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Sending request []
2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Emitting: url.host.all []
2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Writing body []
2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Response received []
2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Reponse (after 0.12431311607361s): 301 []
2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Data received []
2015-02-07 22:15:40 DEBUG [Http][54d6807cc14d6]Request done []
2015-02-07 22:15:40 DEBUG [Url][54d6807cc0df0]Download complete (after 0.12470602989197s): 0 in length length []
2015-02-07 22:15:41 DEBUG moonbasetest!moonbasetest@irc.rizon.net PRIVMSG moonbasetest :[ http://hashworks.net/ ] []
2015-02-07 22:15:41 DEBUG moonbasetest!moonbasetest@irc.rizon.net :moonbasetest!~moonbaset@Rizon-E392224F.pool.mediaways.net PRIVMSG moonbasetest :[ http://hashworks.net/ ] []
2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Found url: http://hashworks.net/ []
2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Emitting: http.request []
2015-02-07 22:15:41 DEBUG [Http]Existing HttpClient found, using it []
2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Sending request []
2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Emitting: url.host.all []
2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Writing body []
2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Response received []
2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Reponse (after 0.11247301101685s): 301 []
2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Data received []
2015-02-07 22:15:41 DEBUG [Http][54d6807d4800a]Request done []
2015-02-07 22:15:41 DEBUG [Url][54d6807d47e58]Download complete (after 0.11286997795105s): 0 in length length []
<REPEAT>

This is because it's messaging itself over and over again prefixed with the http protocol.

(Originally opened by @hashworks on a different repo, moving issue to this rep)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant