From 089a11111a21fe537a1c0a594d0659ab7450b5a8 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 6 May 2020 20:43:17 +0200 Subject: [PATCH] Fix Header Name for Bearer Authorization --- dist/index.js | 2 +- package.json | 2 +- src/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index a5250f6..2a05b01 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2623,7 +2623,7 @@ if (!!core.getInput('username') || !!core.getInput('password')) { } if (!!core.getInput('bearerToken')) { - headers['Authentication'] = `Bearer ${core.getInput('bearerToken')}`; + headers['Authorization'] = `Bearer ${core.getInput('bearerToken')}`; } const instanceConfig = { diff --git a/package.json b/package.json index 93dd8fd..2b469e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "http-request-action", - "version": "1.0.0", + "version": "1.3.0", "description": "", "main": "src/index.js", "private": false, diff --git a/src/index.js b/src/index.js index 44a22bb..2200c9c 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ if (!!core.getInput('username') || !!core.getInput('password')) { } if (!!core.getInput('bearerToken')) { - headers['Authentication'] = `Bearer ${core.getInput('bearerToken')}`; + headers['Authorization'] = `Bearer ${core.getInput('bearerToken')}`; } const instanceConfig = {