Commit 37de93e4 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'fj-change-content-type-detection-header-size' into 'master'

Change content type detection header size to 4k

See merge request gitlab-org/gitlab-workhorse!366
parents ab118e1b 8a6fe290
...@@ -6,7 +6,9 @@ import ( ...@@ -6,7 +6,9 @@ import (
) )
// Max number of bytes that http.DetectContentType needs to get the content type // Max number of bytes that http.DetectContentType needs to get the content type
const MaxDetectSize = 512 // Fixme: Go back to 512 bytes once https://gitlab.com/gitlab-org/gitlab-workhorse/issues/208
// has been merged
const MaxDetectSize = 4096
// HTTP Headers // HTTP Headers
const ( const (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment