Browse Source

Fixed bad help info on auth header

pull/111/head
Teknikode 6 years ago
parent
commit
a69369e813
  1. 10
      Teknik/Areas/Error/Controllers/ErrorController.cs
  2. 2
      Teknik/Areas/Help/Views/Help/API/v1/Paste.cshtml
  3. 2
      Teknik/Areas/Help/Views/Help/API/v1/Shorten.cshtml
  4. 2
      Teknik/Areas/Help/Views/Help/API/v1/Upload.cshtml

10
Teknik/Areas/Error/Controllers/ErrorController.cs

@ -137,9 +137,15 @@ namespace Teknik.Areas.Error.Controllers @@ -137,9 +137,15 @@ namespace Teknik.Areas.Error.Controllers
}
string errorMessage = "Page Not Found";
if (Request != null && Request.Url != null)
if (Request != null)
{
errorMessage += " for page: " + Request.Url.AbsoluteUri;
if (Request.Url != null)
{
errorMessage += " for page: " + Request.Url.AbsoluteUri;
}
errorMessage += " - using Method: " + Request.HttpMethod;
}
Logger.WriteEntry(LogLevel.Warning, errorMessage, exception);

2
Teknik/Areas/Help/Views/Help/API/v1/Paste.cshtml

@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
<tbody>
<tr>
<td>
<code>Authorize</code>
<code>Authorization</code>
</td>
<td>
<code>Basic <i>Encoding.Base64</i>(&lt;username&gt;:&lt;token&gt;)</code>

2
Teknik/Areas/Help/Views/Help/API/v1/Shorten.cshtml

@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
<tbody>
<tr>
<td>
<code>Authorize</code>
<code>Authorization</code>
</td>
<td>
<code>Basic <i>Encoding.Base64</i>(&lt;username&gt;:&lt;token&gt;)</code>

2
Teknik/Areas/Help/Views/Help/API/v1/Upload.cshtml

@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
<tbody>
<tr>
<td>
<code>Authorize</code>
<code>Authorization</code>
</td>
<td>
<code>Basic <i>Encoding.Base64</i>(&lt;username&gt;:&lt;token&gt;)</code>

Loading…
Cancel
Save