mirror of
https://github.com/afollestad/nock-nock.git
synced 2025-04-20 19:45:17 +00:00
Since headers can now be sent, consider 401 an error code
This commit is contained in:
parent
74f7aa8aa2
commit
8dc2112e2d
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue