Skip to content

Commit 7cd9e68

Browse files
committed
fix: add condition to break on HTML content in response headers
1 parent 6259a2d commit 7cd9e68

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

api/specs/github.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ defaults:
4545
backoff_base: 2
4646

4747
- action: break
48-
condition: response.status == 422
48+
condition: response.status == 422
4949
message: "stopping iteration due to code 422 (Unprocessable Content)"
5050

51+
- action: break
52+
condition: contains(response.headers.content_type, "text/html")
53+
message: "returned HTML content"
54+
5155
- action: "stop"
5256
condition: response.status == 403 && request.attempts > 5
5357

0 commit comments

Comments
 (0)