Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
7dc4f4bb
Kaydet (Commit)
7dc4f4bb
authored
Eyl 08, 2013
tarafından
Jason R. Coombs
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18978: Allow Request.method to be defined at the class level.
üst
4f7a36f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
request.py
Lib/urllib/request.py
+3
-2
No files found.
Lib/urllib/request.py
Dosyayı görüntüle @
7dc4f4bb
...
...
@@ -271,7 +271,8 @@ class Request:
origin_req_host
=
request_host
(
self
)
self
.
origin_req_host
=
origin_req_host
self
.
unverifiable
=
unverifiable
self
.
method
=
method
if
method
:
self
.
method
=
method
@property
def
full_url
(
self
):
...
...
@@ -320,7 +321,7 @@ class Request:
def
get_method
(
self
):
"""Return a string indicating the HTTP request method."""
if
self
.
method
is
not
None
:
if
getattr
(
self
,
'method'
,
None
)
is
not
None
:
return
self
.
method
elif
self
.
data
is
not
None
:
return
"POST"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment