mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2024-11-22 11:51:03 -05:00
Merge pull request #5 from fjogeleit/fix-bearer-token-header
Fix Header Name for Bearer Authorization
This commit is contained in:
commit
5d7e3ef283
3 changed files with 3 additions and 3 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -2623,7 +2623,7 @@ if (!!core.getInput('username') || !!core.getInput('password')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!!core.getInput('bearerToken')) {
|
if (!!core.getInput('bearerToken')) {
|
||||||
headers['Authentication'] = `Bearer ${core.getInput('bearerToken')}`;
|
headers['Authorization'] = `Bearer ${core.getInput('bearerToken')}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const instanceConfig = {
|
const instanceConfig = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "http-request-action",
|
"name": "http-request-action",
|
||||||
"version": "1.0.0",
|
"version": "1.3.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"private": false,
|
"private": false,
|
||||||
|
|
|
@ -27,7 +27,7 @@ if (!!core.getInput('username') || !!core.getInput('password')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!!core.getInput('bearerToken')) {
|
if (!!core.getInput('bearerToken')) {
|
||||||
headers['Authentication'] = `Bearer ${core.getInput('bearerToken')}`;
|
headers['Authorization'] = `Bearer ${core.getInput('bearerToken')}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const instanceConfig = {
|
const instanceConfig = {
|
||||||
|
|
Loading…
Reference in a new issue