1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-06 17:39:57 +02:00

[#1956] normalized _requests.method to UPPERCASE

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

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),