- Nov 13, 2022
-
-
Will McCutchen authored
-
Will McCutchen authored
This is a very small improvement to developer ergonomics.
-
Will McCutchen authored
-
Will McCutchen authored
- Nov 11, 2022
-
-
Will McCutchen authored
The `/redirect-to` endpoint currently acts as an open redirect, which is bad for any go-httpbin instance exposed to the public internet. This allows configuring an allowlist of domains to which traffic can be redirected.
-
Will McCutchen authored
-
Will McCutchen authored
Instead of serializing JSON to a temporary slice of bytes before writing to the response, instead write directly to the response. Also, pretty-print JSON responses for better readability (and to match httpbin). Note: With this change, we rely much more on the underlying net/http server's implicit handling of the Content-Length header. One notable side effect of this is that responses to HEAD requests no longer include a Content-Length.
-
Will McCutchen authored
-
Will McCutchen authored
-
Anuraag Agrawal authored
- Handle bodies for GET requests to the /anything endpoint - Do not encode HTML tags in serialized JSON
-
- Oct 19, 2022
-
-
Will McCutchen authored
We were not explicitly testing the behavior of some HTTP verb endpoints like /put and /patch, because they currently share an underlying handler with /post which is thoroughly tested. The addition of the /anything endpoint in #83 made me realize a bit more explicit test coverage would be good, so here we're landing a bit of a refactoring of the test suite to generate tests for all of those endpoints. Along the way, we also improve compatibility with the original httpbin implementation by tricking the stdlib net/http machinery into parsing request bodies for DELETE requests.
-
- Oct 17, 2022
-
-
Will McCutchen authored
-
Will McCutchen authored
-
- Oct 13, 2022
- Oct 12, 2022
-
-
x70b1 authored
-
- Jul 24, 2022
-
-
Matheus Moraes authored
-
- Jul 08, 2022
-
-
Will McCutchen authored
-
- Jul 05, 2022
-
-
Will McCutchen authored
This adds a new /hostname endpoint as originally proposed in #66. In this implementation, it exposes a dummy hostname by default, and only exposes the real hostname (via `os.Hostname()`) if the `-use-real-hostname` flag is given on the command line.
-
- Apr 07, 2022
-
-
Will McCutchen authored
-
Will McCutchen authored
-
- Apr 01, 2022
-
-
Will McCutchen authored
-
Will McCutchen authored
-
- Mar 31, 2022
-
-
Will McCutchen authored
-
Will McCutchen authored
-
Will McCutchen authored
-
Will McCutchen authored
-
Will McCutchen authored
* Fix installation of deps * Rebuild static assets w/ newest go-bindata * Update go versions for CI * Fix deploy on merge * Bump golangci-lint version
-
- Jan 04, 2022
-
-
Gaurav Kamath authored
-
- Nov 29, 2021
-
-
Will McCutchen authored
-
Will McCutchen authored
-
- Oct 20, 2021
-
-
Dan Meruelo authored
-
- Jul 16, 2021
-
- Jul 13, 2021
-