More debug
This commit is contained in:
parent
46f6476f05
commit
9ff0adbf1e
1
main.go
1
main.go
@ -34,6 +34,7 @@ func PostHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
if r.Header.Get("api_key") != appConfig.APIKey {
|
if r.Header.Get("api_key") != appConfig.APIKey {
|
||||||
http.Error(w, "invalid api key", http.StatusUnauthorized)
|
http.Error(w, "invalid api key", http.StatusUnauthorized)
|
||||||
log.Printf("invalid api key: %s", api)
|
log.Printf("invalid api key: %s", api)
|
||||||
|
log.Printf(api)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user