Skip to content

Commit 2c740ca

Browse files
committed
Adding "ignore" to "all" enum
1 parent 65bd1be commit 2c740ca

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

SSLLabsApiWrapper/Domain/RequestModelFactory.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public RequestModel NewAnalyzeRequestModel(string apiBaseUrl, string action, str
1616

1717
requestModel.Parameters.Add("host", host);
1818
requestModel.Parameters.Add("publish", publish);
19-
requestModel.Parameters.Add("all", all);
20-
21-
if (startNew != "ignore") { requestModel.Parameters.Add("startNew", startNew); }
22-
if (fromCache != "ignore") { requestModel.Parameters.Add("fromCache", fromCache); }
19+
20+
if (all.ToLower() != "ignore") { requestModel.Parameters.Add("all", all); }
21+
if (startNew.ToLower() != "ignore") { requestModel.Parameters.Add("startNew", startNew); }
22+
if (fromCache.ToLower() != "ignore") { requestModel.Parameters.Add("fromCache", fromCache); }
2323
if (maxHours != null) { requestModel.Parameters.Add("maxHours", maxHours.ToString()); }
24-
if (ignoreMismatch != "off") { requestModel.Parameters.Add("ignoreMismatch", ignoreMismatch); }
24+
if (ignoreMismatch.ToLower() != "off") { requestModel.Parameters.Add("ignoreMismatch", ignoreMismatch); }
2525

2626
return requestModel;
2727
}

SSLLabsApiWrapper/SSLLabsApiService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public enum FromCache
4040
public enum All
4141
{
4242
On,
43-
Done
43+
Done,
44+
Ignore
4445
}
4546

4647
public enum IgnoreMismatch

0 commit comments

Comments
 (0)