Permalink
Browse files

Add workaround for improperly cleaned scgi over unix domain socket URI

  • Loading branch information...
anthonyryan1 committed Mar 19, 2015
1 parent 79cb8f2 commit d55e16f861eb8d491132c4ce8e35fe51bcbad8b3
Showing with 6 additions and 0 deletions.
  1. +5 −0 sickbeard/config.py
  2. +1 −0 tests/config_tests.py
View
@@ -30,6 +30,11 @@
import sickbeard
# Address poor support for scgi over unix domain sockets
# this is not nicely handled by python currently
# http://bugs.python.org/issue23636
urlparse.uses_netloc.append('scgi')
naming_ep_type = ("%(seasonnumber)dx%(episodenumber)02d",
"s%(seasonnumber)02de%(episodenumber)02d",
"S%(seasonnumber)02dE%(episodenumber)02d",
View
@@ -14,6 +14,7 @@ def test_clean_url(self):
self.assertEqual(config.clean_url("google.com/xml.rpc"), "http://google.com/xml.rpc")
self.assertEqual(config.clean_url("google.com"), "http://google.com/")
self.assertEqual(config.clean_url("http://www.example.com/folder/"), "http://www.example.com/folder/")
self.assertEqual(config.clean_url("scgi:///home/user/.config/path/socket"), "scgi:///home/user/.config/path/socket")
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(QualityTests)

0 comments on commit d55e16f

Please sign in to comment.