Show http requests information

This commit is contained in:
Peter Stuifzand 2018-03-28 01:52:41 +02:00
parent 93acc1a190
commit c13b259763

View File

@ -195,6 +195,8 @@ func (h *microsubHandler) checkAuthToken(header string, token *TokenResponse) bo
}
func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
log.Printf("%s %s\n", r.Method, r.URL)
log.Println(r.URL.Query())
authorization := r.Header.Get("Authorization")
var token TokenResponse