mirror of
https://github.com/go-acme/lego.git
synced 2025-07-16 11:54:22 +02:00
Adjust logging output for http-01
This commit is contained in:
@ -48,7 +48,7 @@ func (s *httpChallenge) Solve(chlng challenge, domain string) error {
|
|||||||
if strings.HasPrefix(r.Host, domain) && r.Method == "GET" {
|
if strings.HasPrefix(r.Host, domain) && r.Method == "GET" {
|
||||||
w.Header().Add("Content-Type", "text/plain")
|
w.Header().Add("Content-Type", "text/plain")
|
||||||
w.Write([]byte(keyAuth))
|
w.Write([]byte(keyAuth))
|
||||||
logf("[INFO] Served key authentication")
|
logf("[INFO][%s] Served key authentication", domain)
|
||||||
} else {
|
} else {
|
||||||
logf("[INFO] Received request for domain %s with method %s", r.Host, r.Method)
|
logf("[INFO] Received request for domain %s with method %s", r.Host, r.Method)
|
||||||
w.Write([]byte("TEST"))
|
w.Write([]byte("TEST"))
|
||||||
|
Reference in New Issue
Block a user