mirror of
https://github.com/Luzifer/ots.git
synced 2025-05-16 13:02:21 -04:00
Lint: Update linter config
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
4c2b5441d8
commit
28c8eda61e
6 changed files with 12 additions and 14 deletions
2
api.go
2
api.go
|
@ -59,7 +59,7 @@ func (a apiServer) handleCreate(res http.ResponseWriter, r *http.Request) {
|
|||
// As a safeguard against HUGE payloads behind a misconfigured
|
||||
// proxy we take double the maximum secret size after which we
|
||||
// just close the read and cut the connection to the sender.
|
||||
r.Body = http.MaxBytesReader(res, r.Body, cust.MaxSecretSize*2) //nolint:gomnd
|
||||
r.Body = http.MaxBytesReader(res, r.Body, cust.MaxSecretSize*2) //nolint:mnd
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue