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
83cc0d0a
Kaydet (Commit)
83cc0d0a
authored
18 years ago
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1117556: SimpleHTTPServer now tries to find and use the system's
mime.types file for determining MIME types.
üst
0540be96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
SimpleHTTPServer.py
Lib/SimpleHTTPServer.py
+3
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/SimpleHTTPServer.py
Dosyayı görüntüle @
83cc0d0a
...
...
@@ -191,7 +191,9 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
return
self
.
extensions_map
[
ext
]
else
:
return
self
.
extensions_map
[
''
]
if
not
mimetypes
.
inited
:
mimetypes
.
init
()
# try to read system mime.types
extensions_map
=
mimetypes
.
types_map
.
copy
()
extensions_map
.
update
({
''
:
'application/octet-stream'
,
# Default
...
...
This diff is collapsed.
Click to expand it.
Misc/NEWS
Dosyayı görüntüle @
83cc0d0a
...
...
@@ -156,6 +156,9 @@ Extension Modules
Library
-------
- Bug #1117556: SimpleHTTPServer now tries to find and use the system'
s
mime
.
types
file
for
determining
MIME
types
.
-
Bug
#
1339007
:
Shelf
objects
now
don
't raise an exception in their
__del__ method when initialization failed.
...
...
This diff is collapsed.
Click to expand it.
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