summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/http_io_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/http_io_spec.rb b/spec/lib/gitlab/http_io_spec.rb
index 4bb5fb7c198..e53c361e169 100644
--- a/spec/lib/gitlab/http_io_spec.rb
+++ b/spec/lib/gitlab/http_io_spec.rb
@@ -319,4 +319,12 @@ describe Gitlab::HttpIO do
it { is_expected.to be_truthy }
end
+
+ describe '#send' do
+ subject(:send) { http_io.send(:request) }
+
+ it 'does not set the "accept-encoding" header' do
+ expect(send['accept-encoding']).to be_nil
+ end
+ end
end