We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6978d7 commit 7b1a299Copy full SHA for 7b1a299
1 file changed
ASCOM.Alpaca.Simulators/Controllers/BaseController.cs
@@ -14,6 +14,12 @@ public class ProcessBaseController : Controller
14
{
15
internal bool BadRequestAlpacaProtocol(out BadRequestObjectResult Result)
16
17
+ Result = null;
18
+ //Only check on Alpaca routes, all others may pass
19
+ if (!HttpContext.Request.Path.ToString().Contains("api/"))
20
+ {
21
+ return false;
22
+ }
23
24
if (HttpContext.Request.Path.ToString().Any(char.IsUpper))
25
@@ -40,7 +46,7 @@ internal bool BadRequestAlpacaProtocol(out BadRequestObjectResult Result)
40
46
Logging.Log.LogError($"Error on request {HttpContext.Request.Path} with details: {Result.Value?.ToString()}");
41
47
return true;
42
48
}
43
- Result = null;
49
+
44
50
return false;
45
51
52
0 commit comments