diff options
Diffstat (limited to 'workhorse/internal/senddata/senddata.go')
-rw-r--r-- | workhorse/internal/senddata/senddata.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/workhorse/internal/senddata/senddata.go b/workhorse/internal/senddata/senddata.go index 190a37c1a15..4cb96890ee2 100644 --- a/workhorse/internal/senddata/senddata.go +++ b/workhorse/internal/senddata/senddata.go @@ -5,6 +5,7 @@ import ( "gitlab.com/gitlab-org/gitlab/workhorse/internal/headers" "gitlab.com/gitlab-org/gitlab/workhorse/internal/helper" + "gitlab.com/gitlab-org/gitlab/workhorse/internal/helper/nginx" "gitlab.com/gitlab-org/gitlab/workhorse/internal/senddata/contentprocessor" "github.com/prometheus/client_golang/prometheus" @@ -88,7 +89,7 @@ func (s *sendDataResponseWriter) tryInject() bool { for _, injecter := range s.injecters { if injecter.Match(header) { s.hijacked = true - helper.DisableResponseBuffering(s.rw) + nginx.DisableResponseBuffering(s.rw) crw := helper.NewCountingResponseWriter(s.rw) injecter.Inject(crw, s.req, header) sendDataResponses.WithLabelValues(injecter.Name()).Inc() |