From f41b7f87e7d5b8124f1b2b002df9f6f20e4be55f Mon Sep 17 00:00:00 2001 From: Slatian Date: Thu, 24 Nov 2022 20:29:39 +0100 Subject: [PATCH] Added some pretty liberal limits on query length to make it more difficult to cause a DOS condition. (the go http package by default limits the header length to 1 Megabyte, which is great at preventing someone from causing trpuble at the http layer, but doesn't work too well when there is a pretty expensive search going on in the background) --- html/index.html | 2 +- html/search.html | 2 +- server/server.go | 31 +++++++++++++++++-------------- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/html/index.html b/html/index.html index f23b98e..8a31493 100644 --- a/html/index.html +++ b/html/index.html @@ -20,7 +20,7 @@