[#1956] normalized _requests.method to UPPERCASE

This commit is contained in:
Gani Georgiev committed 2023-03-02 15:15:00 +02:00
1 parent 41f01bab0d
commit 07727dbde6
3 files changed
+24 -1

No files matched your search

+1 -1
View File
@@ -321,7 +321,7 @@ func ActivityLogger(app core.App) echo.MiddlewareFunc {
model := &models.Request{
Url: httpRequest.URL.RequestURI(),
Method: strings.ToLower(httpRequest.Method),
Method: strings.ToUpper(httpRequest.Method),
Status: status,
Auth: requestAuth,
UserIp: realUserIp(httpRequest, ip),