Skip to content

Commit

Permalink
--headers -> --header
Browse files Browse the repository at this point in the history
  • Loading branch information
mre authored Jun 14, 2024
1 parent 9fe5aa7 commit 742c432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/troubleshooting/custom-headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Some sites expect one or more custom headers to return a valid response.
For example, crates.io expects a `Accept: text/html` header or else it
will [return a 404](https://github.com/rust-lang/crates.io/issues/788).

To fix that you can pass additional headers like so: `--headers "accept=text/html"`.
To fix that you can pass additional headers like so: `--header "accept=text/html"`.
You can use that argument multiple times to add more headers.
Or, you can accept all content/MIME types: `--headers "accept=*/*"`.
Or, you can accept all content/MIME types: `--header "accept=*/*"`.

Learn more about the `Accept` header
[over at MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept).

0 comments on commit 742c432

Please sign in to comment.