Merge pull request #1483 from dpursehouse/httpbin-url-without-trailing-slash

Test cases fail when `HTTPBIN_URL` does not have trailing slash
This commit is contained in:
Kenneth Reitz
2013-07-23 05:23:11 -07:00
+2
View File
@@ -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):