From 10a60c85181ba12f7cc1d84f23f6d6771faaae3d Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 10 Apr 2019 20:34:37 +0300 Subject: Working on TCC... --- Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/Tango.Web/Controllers') 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.FromToken(authorizationHeader.Parameter); + RequestToken = WebToken.FromToken(authorizationHeader.Parameter != null ? authorizationHeader.Parameter : authorizationHeader.ToString()); } catch (Exception ex) { -- cgit v1.3.1