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
b36b0a37
Kaydet (Commit)
b36b0a37
authored
Haz 18, 2018
tarafından
ValeriyaSinevich
Kaydeden (comit)
Steve Dower
Haz 18, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33663: Convert content length to string before putting to header (GH-7754)
üst
e57f91a0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
server.py
Lib/http/server.py
+1
-1
2018-06-17-10-48-03.bpo-33663.sUuGmq.rst
...S.d/next/Library/2018-06-17-10-48-03.bpo-33663.sUuGmq.rst
+1
-0
No files found.
Lib/http/server.py
Dosyayı görüntüle @
b36b0a37
...
@@ -474,7 +474,7 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
...
@@ -474,7 +474,7 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
})
})
body
=
content
.
encode
(
'UTF-8'
,
'replace'
)
body
=
content
.
encode
(
'UTF-8'
,
'replace'
)
self
.
send_header
(
"Content-Type"
,
self
.
error_content_type
)
self
.
send_header
(
"Content-Type"
,
self
.
error_content_type
)
self
.
send_header
(
'Content-Length'
,
int
(
len
(
body
)))
self
.
send_header
(
'Content-Length'
,
str
(
len
(
body
)))
self
.
end_headers
()
self
.
end_headers
()
if
self
.
command
!=
'HEAD'
and
body
:
if
self
.
command
!=
'HEAD'
and
body
:
...
...
Misc/NEWS.d/next/Library/2018-06-17-10-48-03.bpo-33663.sUuGmq.rst
0 → 100644
Dosyayı görüntüle @
b36b0a37
Convert content length to string before putting to header.
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