summaryrefslogtreecommitdiff
path: root/lib/action
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/action
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/action')
-rw-r--r--lib/action/custom.rb2
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