!9 回合上游补丁
From: @dongjiao-joan Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
75f230181b
@ -0,0 +1,35 @@
|
|||||||
|
From 2a2ef2e670d11ee943d98044f548f0a24e27f8ba Mon Sep 17 00:00:00 2001
|
||||||
|
From: Pat Patterson <pat@superpat.com>
|
||||||
|
Date: Wed, 27 Jan 2021 09:01:23 -0800
|
||||||
|
Subject: [PATCH] Fix for #437 - remove erroneous charset param from
|
||||||
|
Content-Type header
|
||||||
|
|
||||||
|
---
|
||||||
|
requests_oauthlib/oauth2_session.py | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/requests_oauthlib/oauth2_session.py b/requests_oauthlib/oauth2_session.py
|
||||||
|
index bfec8e8..fad07f6 100644
|
||||||
|
--- a/requests_oauthlib/oauth2_session.py
|
||||||
|
+++ b/requests_oauthlib/oauth2_session.py
|
||||||
|
@@ -325,7 +325,7 @@ class OAuth2Session(requests.Session):
|
||||||
|
|
||||||
|
headers = headers or {
|
||||||
|
"Accept": "application/json",
|
||||||
|
- "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
||||||
|
+ "Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
}
|
||||||
|
self.token = {}
|
||||||
|
request_kwargs = {}
|
||||||
|
@@ -426,7 +426,7 @@ class OAuth2Session(requests.Session):
|
||||||
|
if headers is None:
|
||||||
|
headers = {
|
||||||
|
"Accept": "application/json",
|
||||||
|
- "Content-Type": ("application/x-www-form-urlencoded;charset=UTF-8"),
|
||||||
|
+ "Content-Type": ("application/x-www-form-urlencoded"),
|
||||||
|
}
|
||||||
|
|
||||||
|
r = self.post(
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,11 +1,12 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-requests-oauthlib
|
Name: python-requests-oauthlib
|
||||||
Version: 1.3.1
|
Version: 1.3.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: OAuthlib authentication support for Requests.
|
Summary: OAuthlib authentication support for Requests.
|
||||||
License: ISC
|
License: ISC
|
||||||
URL: https://github.com/requests/requests-oauthlib
|
URL: https://github.com/requests/requests-oauthlib
|
||||||
Source0: https://files.pythonhosted.org/packages/95/52/531ef197b426646f26b53815a7d2a67cb7a331ef098bb276db26a68ac49f/requests-oauthlib-1.3.1.tar.gz
|
Source0: https://files.pythonhosted.org/packages/95/52/531ef197b426646f26b53815a7d2a67cb7a331ef098bb276db26a68ac49f/requests-oauthlib-1.3.1.tar.gz
|
||||||
|
Patch0: backport-remove-erroneous-charset-param-from-Content-Type-header.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -26,7 +27,7 @@ Provides: python3-requests-oauthlib-doc
|
|||||||
This project provides first-class OAuth library support for `Requests <http://python-requests.org>`.
|
This project provides first-class OAuth library support for `Requests <http://python-requests.org>`.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n requests-oauthlib-1.3.1
|
%autosetup -p1 -n requests-oauthlib-1.3.1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -66,6 +67,9 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 11 2024 dongjiao <dongjiao@kylinos.cn> - 1.3.1-2
|
||||||
|
- bugfix:remove erroneous charset param from Content-Type header
|
||||||
|
|
||||||
* Thu Jun 16 2022 OpenStack_SIG <openstack@openeuler.org> - 1.3.1-1
|
* Thu Jun 16 2022 OpenStack_SIG <openstack@openeuler.org> - 1.3.1-1
|
||||||
- Upgrade version for openstack yoga
|
- Upgrade version for openstack yoga
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user