diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-03-12 16:37:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-12 16:37:18 +0100 |
| commit | 3ddbda9aca3be9bf24a1c0c1f0052e5d9e35b7d8 (patch) | |
| tree | cd92d645dea415bd148c344afccbdaa62316866f /Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs | |
| parent | ffd6dac03a94bb99387e84b447aa22ca92cf9465 (diff) | |
| parent | 1fef8bf266480dc41cdf7ab80d1deac54dedad3d (diff) | |
Merge branch 'master' into xml
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs index cab41e65b..276312a30 100644 --- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs +++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs @@ -5,6 +5,7 @@ using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Net; using MediaBrowser.Controller.Security; using MediaBrowser.Model.Services; +using Microsoft.Net.Http.Headers; namespace Emby.Server.Implementations.HttpServer.Security { @@ -176,7 +177,7 @@ namespace Emby.Server.Implementations.HttpServer.Security if (string.IsNullOrEmpty(auth)) { - auth = httpReq.Headers["Authorization"]; + auth = httpReq.Headers[HeaderNames.Authorization]; } return GetAuthorization(auth); |
