Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
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
django
Commits
48ce167d
Kaydet (Commit)
48ce167d
authored
Haz 26, 2013
tarafından
Loic Bistuer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed missing initializations in WSGIRequest. Refs #20619
üst
7d0c3b9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
wsgi.py
django/core/handlers/wsgi.py
+1
-0
request.py
django/http/request.py
+4
-0
No files found.
django/core/handlers/wsgi.py
Dosyayı görüntüle @
48ce167d
...
@@ -103,6 +103,7 @@ class WSGIRequest(http.HttpRequest):
...
@@ -103,6 +103,7 @@ class WSGIRequest(http.HttpRequest):
content_length
=
0
content_length
=
0
self
.
_stream
=
LimitedStream
(
self
.
environ
[
'wsgi.input'
],
content_length
)
self
.
_stream
=
LimitedStream
(
self
.
environ
[
'wsgi.input'
],
content_length
)
self
.
_read_started
=
False
self
.
_read_started
=
False
self
.
resolver_match
=
None
def
_is_secure
(
self
):
def
_is_secure
(
self
):
return
'wsgi.url_scheme'
in
self
.
environ
and
self
.
environ
[
'wsgi.url_scheme'
]
==
'https'
return
'wsgi.url_scheme'
in
self
.
environ
and
self
.
environ
[
'wsgi.url_scheme'
]
==
'https'
...
...
django/http/request.py
Dosyayı görüntüle @
48ce167d
...
@@ -39,6 +39,10 @@ class HttpRequest(object):
...
@@ -39,6 +39,10 @@ class HttpRequest(object):
_upload_handlers
=
[]
_upload_handlers
=
[]
def
__init__
(
self
):
def
__init__
(
self
):
# WARNING: The `WSGIRequest` subclass doesn't call `super`.
# Any variable assignment made here should also happen in
# `WSGIRequest.__init__()`.
self
.
GET
,
self
.
POST
,
self
.
COOKIES
,
self
.
META
,
self
.
FILES
=
{},
{},
{},
{},
{}
self
.
GET
,
self
.
POST
,
self
.
COOKIES
,
self
.
META
,
self
.
FILES
=
{},
{},
{},
{},
{}
self
.
path
=
''
self
.
path
=
''
self
.
path_info
=
''
self
.
path_info
=
''
...
...
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