Skip to content

Commit 6d587ab

Browse files
committed
Add --allow-errors to http status check example
1 parent f8c7724 commit 6d587ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ To work with metadata while streaming the response body, use `metadata access`:
271271

272272
```nu
273273
# Log status and headers while streaming a large JSONL file
274-
http get https://api.example.com/events.jsonl
274+
http get --allow-errors https://api.example.com/events.jsonl
275275
| metadata access {|meta|
276276
print $"Status: ($meta.http_response.status)"
277277
print $"Content-Type: ($meta.http_response.headers | where name == content-type | get value.0)"

0 commit comments

Comments
 (0)