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/action | |
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/action')
-rw-r--r-- | lib/action/custom.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action/custom.rb b/lib/action/custom.rb index ba0e650..c781f00 100644 --- a/lib/action/custom.rb +++ b/lib/action/custom.rb @@ -13,7 +13,7 @@ module Action class UnsuccessfulError < BaseError; end NO_MESSAGE_TEXT = 'No message'.freeze - DEFAULT_HEADERS = { 'Content-Type' => 'application/json' }.freeze + DEFAULT_HEADERS = { 'Content-Type' => CONTENT_TYPE_JSON }.freeze def initialize(gl_id, payload) @gl_id = gl_id |