Wrap /user/{username} in RequireAuth middleware (closes #60) #71

Merged
sneak merged 2 commits from issue-60-user-requireauth into main 2026-08-07 14:00:17 +02:00
Showing only changes of commit 4ea24de8f6 - Show all commits

View File

@@ -13,8 +13,11 @@ const (
httpReadTimeout = 10 * time.Second httpReadTimeout = 10 * time.Second
// httpWriteTimeout is the maximum duration before timing out // httpWriteTimeout is the maximum duration before timing out
// writes of the response. // writes of the response. It must stay above the router's
httpWriteTimeout = 10 * time.Second // requestTimeout (60s, in routes.go) so the middleware timeout
// fires first and returns a clean 503, rather than the transport
// cutting the connection at the socket write deadline.
httpWriteTimeout = 65 * time.Second
// httpMaxHeaderBytes is the maximum number of bytes the // httpMaxHeaderBytes is the maximum number of bytes the
// server will read parsing the request headers. // server will read parsing the request headers.