Skip to content

Commit bcce705

Browse files
committed
Merge remote-tracking branch 'JaTochNietDan/master' into develop
Conflicts: server.go
2 parents 78e0e46 + 867b6c8 commit bcce705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ var (
2222
// This method handles all requests. It dispatches to handleInternal after
2323
// handling / adapting websocket connections.
2424
func handle(w http.ResponseWriter, r *http.Request) {
25+
r.Body = http.MaxBytesReader(w, r.Body, int64(Config.IntDefault("http.maxRequestSize", 10000000)))
2526
upgrade := r.Header.Get("Upgrade")
2627
if upgrade == "websocket" || upgrade == "Websocket" {
2728
websocket.Handler(func(ws *websocket.Conn) {
@@ -87,7 +88,6 @@ func Run(port int) {
8788

8889
runStartupHooks()
8990

90-
9191
// Load templates
9292
MainTemplateLoader = NewTemplateLoader(TemplatePaths)
9393
MainTemplateLoader.Refresh()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy