Since headers can now be sent, consider 401 an error code

This commit is contained in:
Aidan Follestad 2019-01-08 16:27:26 -08:00
parent 74f7aa8aa2
commit 8dc2112e2d

View file

@ -165,7 +165,7 @@ class RealValidationExecutor(
val response = client.newCall(request)
.execute()
if (response.isSuccessful || response.code() == 401) {
if (response.isSuccessful) {
log("performValidation(${site.id}) = Successful")
CheckResult(
model = site.withStatus(status = OK, reason = null),