1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-29 23:07:40 +02:00

Rename IMGPROXY_WRITE_TIMEOUT to IMGPROXY_TIMEOUT and IMGPROXY_READ_TIMEOUT to IMGPROXY_READ_REQUEST_TIMEOUT

This commit is contained in:
DarthSim
2024-06-03 20:36:32 +03:00
parent e867d0f10a
commit cb32e71788
4 changed files with 34 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ func startServer(cancel context.CancelFunc) (*http.Server, error) {
s := &http.Server{
Handler: buildRouter(),
ReadTimeout: time.Duration(config.ReadTimeout) * time.Second,
ReadTimeout: time.Duration(config.ReadRequestTimeout) * time.Second,
MaxHeaderBytes: 1 << 20,
ErrorLog: errLogger,
}