Fix missing ? in path in session log

This commit is contained in:
Ingo Oppermann 2023-07-21 15:39:41 +02:00
parent 2844d2d7a2
commit a8fbdd288f
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -15,7 +15,10 @@ func (h *handler) handleHTTP(c echo.Context, ctxuser string, data map[string]int
path := req.URL.Path
location := path + req.URL.RawQuery
location := path
if len(req.URL.RawQuery) != 0 {
location += "?" + req.URL.RawQuery
}
remote := req.RemoteAddr
id := shortuuid.New()