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
bd341629
Kaydet (Commit)
bd341629
authored
Ock 17, 2015
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
capitialize "HttpOnly" and "Secure" as they appear in the standard and other impls (closes #23250)
Patch by Jon Dufresne.
üst
f716d8b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
cookies.py
Lib/http/cookies.py
+2
-2
test_http_cookies.py
Lib/test/test_http_cookies.py
+2
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/http/cookies.py
Dosyayı görüntüle @
bd341629
...
@@ -330,8 +330,8 @@ class Morsel(dict):
...
@@ -330,8 +330,8 @@ class Morsel(dict):
"comment"
:
"Comment"
,
"comment"
:
"Comment"
,
"domain"
:
"Domain"
,
"domain"
:
"Domain"
,
"max-age"
:
"Max-Age"
,
"max-age"
:
"Max-Age"
,
"secure"
:
"
s
ecure"
,
"secure"
:
"
S
ecure"
,
"httponly"
:
"
httpo
nly"
,
"httponly"
:
"
HttpO
nly"
,
"version"
:
"Version"
,
"version"
:
"Version"
,
}
}
...
...
Lib/test/test_http_cookies.py
Dosyayı görüntüle @
bd341629
...
@@ -114,7 +114,7 @@ class CookieTests(unittest.TestCase):
...
@@ -114,7 +114,7 @@ class CookieTests(unittest.TestCase):
C
[
'Customer'
][
'secure'
]
=
True
C
[
'Customer'
][
'secure'
]
=
True
C
[
'Customer'
][
'httponly'
]
=
True
C
[
'Customer'
][
'httponly'
]
=
True
self
.
assertEqual
(
C
.
output
(),
self
.
assertEqual
(
C
.
output
(),
'Set-Cookie: Customer="WILE_E_COYOTE";
httponly; s
ecure'
)
'Set-Cookie: Customer="WILE_E_COYOTE";
HttpOnly; S
ecure'
)
def
test_secure_httponly_false_if_not_present
(
self
):
def
test_secure_httponly_false_if_not_present
(
self
):
C
=
cookies
.
SimpleCookie
()
C
=
cookies
.
SimpleCookie
()
...
@@ -152,7 +152,7 @@ class CookieTests(unittest.TestCase):
...
@@ -152,7 +152,7 @@ class CookieTests(unittest.TestCase):
C
=
cookies
.
SimpleCookie
()
C
=
cookies
.
SimpleCookie
()
C
.
load
(
'eggs = scrambled ; secure ; path = bar ; foo=foo '
)
C
.
load
(
'eggs = scrambled ; secure ; path = bar ; foo=foo '
)
self
.
assertEqual
(
C
.
output
(),
self
.
assertEqual
(
C
.
output
(),
'Set-Cookie: eggs=scrambled; Path=bar;
s
ecure
\r\n
Set-Cookie: foo=foo'
)
'Set-Cookie: eggs=scrambled; Path=bar;
S
ecure
\r\n
Set-Cookie: foo=foo'
)
def
test_quoted_meta
(
self
):
def
test_quoted_meta
(
self
):
# Try cookie with quoted meta-data
# Try cookie with quoted meta-data
...
...
Misc/NEWS
Dosyayı görüntüle @
bd341629
...
@@ -44,6 +44,9 @@ Core and Builtins
...
@@ -44,6 +44,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #23250: In the http.cookies module, capitalize "HttpOnly" and "Secure"
as they are written in the standard.
- Issue #23063: In the disutils'
check
command
,
fix
parsing
of
reST
with
code
or
- Issue #23063: In the disutils'
check
command
,
fix
parsing
of
reST
with
code
or
code
-
block
directives
.
code
-
block
directives
.
...
...
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