Skip to content

Commit 2821658

Browse files
committed
Update request_headers.rst
In that example on line 13: >>> g.setup(header={'X-Requested-With': 'XMLHttpRequest'}) should be headers instead header :) Regards,
1 parent 48fc324 commit 2821658

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/en/source/grab/request_headers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you need to submit custom HTTP headers, you can specify any number of them
1010
via :ref:`option_headers` option. A common case is to emulate an AJAX request::
1111

1212
>>> g = Grab()
13-
>>> g.setup(header={'X-Requested-With': 'XMLHttpRequest'})
13+
>>> g.setup(headers={'X-Requested-With': 'XMLHttpRequest'})
1414

1515
Bear in mind, that except headers in :ref:`option_headers` option (that is
1616
empty by default) Grab also generates a bunch of headers to emulate a typical

0 commit comments

Comments
 (0)