midgetspy/Sick-Beard — pull request #403 by giantspook (2012-06-02 09:31:12+00:00)
Title: Make restart code work when behind reverse proxy

the restart code used to not take the web_root case into account. it would redirect to the wrong location following a restart.

I have tested this patch in the following cases:

* http -> http restart (no web_root)
* http -> https restart (no web_root)
* https -> https restart (no web_root)
* and of course, HTTP-via-reverse-proxy -> same, with web_root configured, apache for the proxy

the original code didn't handle the https -> http case, and i haven't added support because anyone who manages to get https working well enough to switch back to http should be able to figure it out themself!