go-httpbin
go-httpbin copied to clipboard
http://httpbin.org endpoints for your Go tests
Hi there, thanks for the awesome package! I previously relied on using httpbin.org in tests but prefer having a local test server. In some of my tests, i asserted that...
Previously this failed due to the two-digit subversion. Fixes #26.
``` $ go test --- FAIL: TestDeleteCookies (0.00s) require.go:44: Error Trace: handlers_test.go:460 Error: "[k3=v3]" does not contain "k1=" Test: TestDeleteCookies FAIL exit status 1 FAIL github.com/ahmetb/go-httpbin 2.229s ```
This would ensure better compatibility with user expectations. https://github.com/gaul/httpbin/tree/java-httpbin shows the workarounds needed for java-httpbin. References gaul/java-httpbin#4.
Please enable Travis CI to prevent regressions like the current one in 2af00d7564ba42267de040990a6588f1ca299315: ``` --- FAIL: TestDeleteCookies (0.00s) Error Trace: handlers_test.go:404 Error: "[k3=v3]" does not contain "k1=" FAIL exit status...
go-httpbin does not return Content-Length in some cases. Follow on to #9.