summaryrefslogtreecommitdiff
path: root/lib/http_helper.rb
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2018-09-11 11:05:24 +0000
committerNick Thomas <nick@gitlab.com>2018-09-11 11:05:24 +0000
commit624a97d654ed02bd7fb65b6205b1533cfbe2cfbc (patch)
treec71e79f03b1ac7e21a7966d01cbce90f24d690dd /lib/http_helper.rb
parente5b6e8e2550e203978cd25d3e07ca468b4d06c91 (diff)
downloadgitlab-shell-624a97d654ed02bd7fb65b6205b1533cfbe2cfbc.tar.gz
Ensure text/plain & text/html content typs are handled and add missing specs for handled HTTP status codes
Diffstat (limited to 'lib/http_helper.rb')
-rw-r--r--lib/http_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http_helper.rb b/lib/http_helper.rb
index 55c504c..a7e7b23 100644
--- a/lib/http_helper.rb
+++ b/lib/http_helper.rb
@@ -6,6 +6,7 @@ module HTTPHelper
include HTTPCodes
READ_TIMEOUT = 300
+ CONTENT_TYPE_JSON = 'application/json'.freeze
protected