Skip to content

Commit

Permalink
Document new option ignore_incomplete_reads.
Browse files Browse the repository at this point in the history
  • Loading branch information
wfrisch committed Jan 24, 2024
1 parent 696d9f2 commit d8a432a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ or ignore all HTTP errors if you like:
url: https://example.com/
ignore_http_error_codes: 4xx, 5xx
You can also ignore incomplete reads:

.. code-block:: yaml
url: "https://example.com/"
ignore_incomplete_reads: true
Overriding the content encoding
-------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs/source/jobs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Job-specific optional keys:
- ``ignore_http_error_codes``: List of HTTP errors to ignore (see :ref:`advanced_topics`)
- ``ignore_timeout_errors``: Do not report errors when the timeout is hit
- ``ignore_too_many_redirects``: Ignore redirect loops (see :ref:`advanced_topics`)
- ``ignore_incomplete_reads``: Ignore incomplete HTTP responses (see :ref:`advanced_topics`)

(Note: ``url`` implies ``kind: url``)

Expand Down
2 changes: 2 additions & 0 deletions share/man/man5/urlwatch-jobs.5
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ Job\-specific optional keys:
\fBignore_timeout_errors\fP: Do not report errors when the timeout is hit
.IP \(bu 2
\fBignore_too_many_redirects\fP: Ignore redirect loops (see \fI\%Advanced Topics\fP)
.IP \(bu 2
\fBignore_incomplete_reads\fP: Ignore incomplete HTTP responses (see \fI\%Advanced Topics\fP)
.UNINDENT
.sp
(Note: \fBurl\fP implies \fBkind: url\fP)
Expand Down

0 comments on commit d8a432a

Please sign in to comment.