diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2019-04-11 11:25:01 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2019-04-11 11:25:01 +0300 |
| commit | 50672cf57739bac3c0ddefcd40563d0fbed3db80 (patch) | |
| tree | c6d5bbedc8210c6004ee49db416457ccd488d983 /Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs | |
| parent | 64aeeb1d2784569e4ebf7c72c660458cf4432eee (diff) | |
| parent | d5553e30f41ba83cf4a5d9366114a64136fcb504 (diff) | |
| download | Tango-50672cf57739bac3c0ddefcd40563d0fbed3db80.tar.gz Tango-50672cf57739bac3c0ddefcd40563d0fbed3db80.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs b/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs index 32cc3f83c..5d96a7249 100644 --- a/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs +++ b/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs @@ -109,11 +109,11 @@ namespace Tango.Web.Controllers var authorizationHeader = request.Headers.Authorization; - if (authorizationHeader != null && authorizationHeader.Parameter != null) + if (authorizationHeader != null) { try { - RequestToken = WebToken<T>.FromToken(authorizationHeader.Parameter); + RequestToken = WebToken<T>.FromToken(authorizationHeader.Parameter != null ? authorizationHeader.Parameter : authorizationHeader.ToString()); } catch (Exception ex) { |
