Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 19:15 UTC
cmd: Fix unix socket addresses for admin API requests (#4742)
Fixes a regression in c2327161f725c820826587381f37d651a2b9736d
Francis Lavoie committed
Apr 28, 2022 at 10:31 UTC
2e4c09155a750895a306f8900a6d5f4597db5287
1 file changed
+1
-1
cmd/commandfuncs.go
+1
-1
@@ -669,7 +669,7 @@ func AdminAPIRequest(adminAddr, method, uri string, headers http.Header, body io
669
}
670
origin := "http://" + parsedAddr.JoinHostPort(0)
671
if parsedAddr.IsUnixNetwork() {
672
- origin = "unixsocket" // hack so that http.NewRequest() is happy
672
+ origin = "http://unixsocket" // hack so that http.NewRequest() is happy
673
}
674
675
// form the request