diff options
author | David Cramer <dcramer@gmail.com> | 2013-12-26 20:56:32 -0800 |
---|---|---|
committer | David Cramer <dcramer@gmail.com> | 2013-12-26 20:57:05 -0800 |
commit | e2cce80509660c72d4f6b9fae26bf6b565c95e0e (patch) | |
tree | 9255797ca0857a12efff0b61b6d0aa54fa02860e | |
parent | d42240862ae253c70c68872ba6a4fec098002788 (diff) | |
download | raven-4.0.0.tar.gz |
Correctly handle sync+4.0.0
-rw-r--r-- | raven/transport/http.py | 3 | ||||
-rw-r--r-- | raven/transport/threaded.py | 6 |
2 files changed, 2 insertions, 7 deletions
diff --git a/raven/transport/http.py b/raven/transport/http.py index 18dc8d4..96c0d44 100644 --- a/raven/transport/http.py +++ b/raven/transport/http.py @@ -23,7 +23,8 @@ class HTTPTransport(Transport): self.check_scheme(parsed_url) self._parsed_url = parsed_url - self._url = parsed_url.geturl() + self._url = parsed_url.geturl().split('+', 1)[-1] + if isinstance(timeout, six.string_types): timeout = int(timeout) self.timeout = timeout diff --git a/raven/transport/threaded.py b/raven/transport/threaded.py index 1a82745..e247951 100644 --- a/raven/transport/threaded.py +++ b/raven/transport/threaded.py @@ -94,12 +94,6 @@ class ThreadedHTTPTransport(AsyncTransport, HTTPTransport): scheme = ['http', 'https', 'threaded+http', 'threaded+https'] - def __init__(self, *args, **kwargs): - super(ThreadedHTTPTransport, self).__init__(*args, **kwargs) - - # remove the threaded+ from the protocol, as it is not a real protocol - self._url = self._url.split('+', 1)[-1] - def get_worker(self): if not hasattr(self, '_worker'): self._worker = AsyncWorker() |