diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-09-11 11:05:24 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-09-11 11:05:24 +0000 |
commit | 624a97d654ed02bd7fb65b6205b1533cfbe2cfbc (patch) | |
tree | c71e79f03b1ac7e21a7966d01cbce90f24d690dd /lib/http_helper.rb | |
parent | e5b6e8e2550e203978cd25d3e07ca468b4d06c91 (diff) | |
download | gitlab-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.rb | 1 |
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 |