You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Macaron] 2021-01-12 10:00:58: Started GET for xxx.xxx.xxx.xxx
[Macaron] [Static] Serving /serviceworker.js
[Macaron] 2021-01-12 10:00:58: Completed GET 304 Not Modified in 479.996µs
[Macaron] 2021-01-12 10:00:58: Completed GET 304 Not Modified in 479.996µs
[Macaron] 2021-01-12 10:00:58: Started GET for xxx.xxx.xxx.xxx
[Macaron] 2021-01-12 10:00:58: Started GET for xxx.xxx.xxx.xxx
[Macaron] 2021-01-12 10:00:58: Completed GET 200 OK in 3.775066ms
[Macaron] 2021-01-12 10:00:58: Completed GET 200 OK in 3.775066ms
Description
When using PROTOCOL = fcgi, request paths(http.Request.RequestURI) are not shown in the logs.
Go's net/http/cgi.RequestFromMap(), which net/http/fcgi uses, does not populate RequestURI(but does URL). As RequestURIis documented "Usually the URL field should be used instead", req.URL.RequestURI() may be a simple and recommended alternative.
* master:
Use Request.URL.RequestURI() for fcgi (go-gitea#14312) (go-gitea#14314)
Update Link
[skip ci] Updated translations via Crowdin
Kd/add bountysource (go-gitea#14323)
[x]
):Description
When using
PROTOCOL = fcgi
, request paths(http.Request.RequestURI
) are not shown in the logs.Go's
net/http/cgi.RequestFromMap()
, whichnet/http/fcgi
uses, does not populateRequestURI
(but doesURL
). AsRequestURI
is documented "Usually the URL field should be used instead",req.URL.RequestURI()
may be a simple and recommended alternative.gitea/routers/routes/chi.go
Line 89 in 9659808
gitea/routers/routes/chi.go
Line 96 in 9659808
Screenshots
None
The text was updated successfully, but these errors were encountered: