Pārlūkot izejas kodu

[release] v0.10.4-unstable4

Yann Stepienik 1 gadu atpakaļ
vecāks
revīzija
1fdeb258d0
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1 0
      changelog.md
  2. 1 1
      src/utils/middleware.go

+ 1 - 0
changelog.md

@@ -2,6 +2,7 @@
  - Encode OpenID .well-known to JSON
  - Fix incompatibility with other apps using .well-known
  - Secure the OpenID routes that missed the hardening
+ - Added some logs
 
 ## Version 0.10.3
  - Add missing Constellation logs when creating certs

+ 1 - 1
src/utils/middleware.go

@@ -177,7 +177,7 @@ func BlockPostWithoutReferer(next http.Handler) http.Handler {
 		if r.Method == "POST" || r.Method == "PUT" || r.Method == "PATCH" || r.Method == "DELETE" {
 			referer := r.Header.Get("Referer")
 			if referer == "" {
-				utils.Error("Blocked POST request without Referer header", nil)
+				Error("Blocked POST request without Referer header", nil)
 				http.Error(w, "Bad Request: Invalid request.", http.StatusBadRequest)
 				return
 			}