Skip to content

Commit 1d014ed

Browse files
committed
Merge pull request #167 from matlex/patch-1
Update request_headers.rst
2 parents 48fc324 + 2821658 commit 1d014ed

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)