Adjust logging output for http-01
This commit is contained in:
parent
466af28672
commit
09ff568758
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue