From cb7fcd7ebddb45917fb7a526d3627feb2d7738b9 Mon Sep 17 00:00:00 2001 From: Joren Vrancken Date: Sat, 12 Aug 2023 19:53:36 +0200 Subject: [PATCH] Specify that Session.headers needs to be set to a OrderedDict in Header Ordering docs (#6475) --- docs/user/advanced.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index 543b3785..c90a13dc 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -1081,7 +1081,7 @@ Header Ordering In unusual circumstances you may want to provide headers in an ordered manner. If you pass an ``OrderedDict`` to the ``headers`` keyword argument, that will provide the headers with an ordering. *However*, the ordering of the default headers used by Requests will be preferred, which means that if you override default headers in the ``headers`` keyword argument, they may appear out of order compared to other headers in that keyword argument. -If this is problematic, users should consider setting the default headers on a :class:`Session ` object, by setting :attr:`Session ` to a custom ``OrderedDict``. That ordering will always be preferred. +If this is problematic, users should consider setting the default headers on a :class:`Session ` object, by setting :attr:`Session.headers ` to a custom ``OrderedDict``. That ordering will always be preferred. .. _timeouts: