Browse Source

Fixed bad help info on auth header

tags/3.0.0
Teknikode 2 years ago
parent
commit
a69369e813

+ 8
- 2
Teknik/Areas/Error/Controllers/ErrorController.cs View File

@@ -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);

+ 1
- 1
Teknik/Areas/Help/Views/Help/API/v1/Paste.cshtml View File

@@ -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>

+ 1
- 1
Teknik/Areas/Help/Views/Help/API/v1/Shorten.cshtml View File

@@ -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>

+ 1
- 1
Teknik/Areas/Help/Views/Help/API/v1/Upload.cshtml View File

@@ -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