aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinus Lewandowski <linus@lew21.net>2018-05-22 12:28:41 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-24 20:39:49 +0200
commit239a7061f83231f2bac362c6b817a5ae10bd6696 (patch)
tree835fe4e25177200a55e0585eff00f6f97bafc1cc /src
parent49fe65ccd81a2f27aae0e77e2714dc234de483c6 (diff)
httpauth: add support for Bearer tokens
Closes #2102
Diffstat (limited to 'src')
-rw-r--r--src/tool_getparam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 4b9ae0653..e83373c37 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -601,6 +601,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
break;
case 'B': /* OAuth 2.0 bearer token */
GetStr(&config->oauth_bearer, nextarg);
+ config->authtype |= CURLAUTH_BEARER;
break;
case 'c': /* connect-timeout */
err = str2udouble(&config->connecttimeout, nextarg,