Skip to content

Commit f956e12

Browse files
committed
use consistent http header case
1 parent 3984f79 commit f956e12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/legacy_auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void legacy_timer_cb(uv_timer_t *t) {
345345
tlsuv_http_req_query(req, 1, &(tlsuv_http_pair){"method", "cert"});
346346
} else {
347347
cstr bearer = cstr_from_fmt("Bearer %s", cstr_str(&auth->primary_jwt));
348-
tlsuv_http_req_header(req, "authorization", cstr_str(&bearer));
348+
tlsuv_http_req_header(req, "Authorization", cstr_str(&bearer));
349349
tlsuv_http_req_query(req, 1, &(tlsuv_http_pair){"method", "ext-jwt"});
350350
}
351351

library/ziti_ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ void ziti_ctrl_clear_auth(ziti_controller *ctrl) {
385385
if (ctrl->client) {
386386
CTRL_LOG(DEBUG, "clearing api session token for ziti_controller");
387387
tlsuv_http_header(ctrl->client, "zt-session", NULL);
388-
tlsuv_http_header(ctrl->client, "authorization", NULL);
388+
tlsuv_http_header(ctrl->client, "Authorization", NULL);
389389
}
390390
}
391391

0 commit comments

Comments
 (0)