--- Auth.pm.old 2020-06-18 15:16:53.062848795 +0800 +++ Auth.pm 2020-06-18 15:16:37.671561273 +0800 @@ -157,8 +157,8 @@ my $authorization = $spec->{'x-koha-authorization'}; - my $authorization_header = $c->req->headers->authorization; - + my $headers = $c->req->content->headers; + my $authorization_header = $headers->header('x-koha-authorization'); if ($authorization_header and $authorization_header =~ /^Bearer /) { # attempt to use OAuth2 authentication if ( ! Module::Load::Conditional::can_load(