Skip to content

Commit

Permalink
Update request_headers.rst
Browse files Browse the repository at this point in the history
In that example on line 13: >>> g.setup(header={'X-Requested-With': 'XMLHttpRequest'}) should be headers instead header :)
Regards,
  • Loading branch information
matlex committed Jan 8, 2016
1 parent 48fc324 commit 2821658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/source/grab/request_headers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you need to submit custom HTTP headers, you can specify any number of them
via :ref:`option_headers` option. A common case is to emulate an AJAX request::

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

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

0 comments on commit 2821658

Please sign in to comment.