1
0
Fork 0
mirror of https://github.com/fjogeleit/http-request-action.git synced 2024-12-22 20:32:33 +00:00

Fix Header Name for Bearer Authorization

This commit is contained in:
Frank 2020-05-06 20:43:17 +02:00
parent f7cd714b2c
commit 089a11111a
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View file

@ -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 = {

View file

@ -1,6 +1,6 @@
{
"name": "http-request-action",
"version": "1.0.0",
"version": "1.3.0",
"description": "",
"main": "src/index.js",
"private": false,

View file

@ -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 = {