diff --git a/test_requests.py b/test_requests.py index f2b633b5..3779e365 100755 --- a/test_requests.py +++ b/test_requests.py @@ -23,6 +23,8 @@ except ImportError: import io as StringIO HTTPBIN = os.environ.get('HTTPBIN_URL', 'http://httpbin.org/') +# Issue #1483: Make sure the URL always has a trailing slash +HTTPBIN = HTTPBIN.rstrip('/') + '/' def httpbin(*suffix):