From fe7a1cce185aa979a9c6c58f77bd7548a365c815 Mon Sep 17 00:00:00 2001 From: Matthew Jenkins <40323108+Matthew-Jenkins@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:33:13 -0500 Subject: [PATCH] Update authentication.rst https://github.com/requests/toolbelt/issues/329 --- docs/authentication.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/authentication.rst b/docs/authentication.rst index 487a7405..ecbc3d3c 100644 --- a/docs/authentication.rst +++ b/docs/authentication.rst @@ -41,6 +41,7 @@ GitLab's API, you would set up and use your def gitlab_auth(request): request.headers['PRIVATE-TOKEN'] = 'asecrettoken' + return request handler = AuthHandler({ 'https://api.github.com': ('sigmavirus24', 'apassword'),