We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4002ae2 commit c3bde36Copy full SHA for c3bde36
1 file changed
internal/server/tls_on_demand.go
@@ -49,7 +49,7 @@ func (c *TLSOnDemandChecker) HostPolicy() (autocert.HostPolicy, error) {
49
func (c *TLSOnDemandChecker) LocalHostPolicy() autocert.HostPolicy {
50
return func(ctx context.Context, host string) error {
51
path := c.buildURLOrPath(host)
52
- req, err := http.NewRequestWithContext(ctx, http.MethodGet, path, nil)
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, path, http.NoBody)
53
if err != nil {
54
return err
55
}
0 commit comments