File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ internal bool BadRequestAlpacaProtocol(out BadRequestObjectResult Result)
4848 }
4949 }
5050
51- if ( HttpContext . Request . Query . Keys . Any ( key => ! ValidAlpacaKeys . ValidParameterKeys . Contains ( key ) ) )
51+ if ( HttpContext . Request . Query . Keys . Any ( key => ! ValidAlpacaKeys . ValidParameterKeys . Contains ( key . ToLower ( ) ) ) )
5252 {
5353 var keys = HttpContext . Request . Query . Keys . Where ( key => ! ValidAlpacaKeys . ValidParameterKeys . Contains ( key ) ) ;
5454 Result = BadRequest ( Strings . FormCapitalizationDescription + string . Join ( ", " , keys ) ) ;
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ namespace ASCOM.Alpaca.Simulators
55 internal class ValidAlpacaKeys
66 {
77 internal static List < string > ValidParameterKeys = new List < string > {
8- "ClientID " ,
9- "ClientTransactionID " ,
10- "RightAscension " ,
11- "Declination " ,
12- "Id " ,
13- "SensorName " ,
14- "Axis "
8+ "clientid " ,
9+ "clienttransactionid " ,
10+ "rightascension " ,
11+ "declination " ,
12+ "id " ,
13+ "sensorname " ,
14+ "axis "
1515 } ;
1616
1717 internal static List < string > ValidFormKeys = new List < string > {
You can’t perform that action at this time.
0 commit comments