Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: panic() on ioutil.ReadAll in caddy on go 692df21 #17525
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
This is a result of 4859f6a but it's actually looks like it just reveals a bug of sort in Caddy:
http.NewRequest returns an outgoing client request, which that test passes to ServerHTTP (which takes incoming server requests). Those types of Requests have different semantics.
Caddy should probably use https://golang.org/pkg/net/http/httptest/#NewRequest instead, which makes incoming server requests instead of client requests.