Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -86,7 +86,6 @@ class MyHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):\n\
|
|
| 86 |
return super().do_GET()\n\
|
| 87 |
\n\
|
| 88 |
def guess_type(self, path):\n\
|
| 89 |
-
mimetype, encoding = super().guess_type(path)\n\
|
| 90 |
# Add audio MIME types\n\
|
| 91 |
if path.endswith(".mp3"):\n\
|
| 92 |
return "audio/mpeg"\n\
|
|
@@ -94,7 +93,8 @@ class MyHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):\n\
|
|
| 94 |
return "audio/wav"\n\
|
| 95 |
elif path.endswith(".ogg"):\n\
|
| 96 |
return "audio/ogg"\n\
|
| 97 |
-
|
|
|
|
| 98 |
\n\
|
| 99 |
PORT = int(os.environ.get("PORT", 7860))\n\
|
| 100 |
files = os.listdir(".")\n\
|
|
|
|
| 86 |
return super().do_GET()\n\
|
| 87 |
\n\
|
| 88 |
def guess_type(self, path):\n\
|
|
|
|
| 89 |
# Add audio MIME types\n\
|
| 90 |
if path.endswith(".mp3"):\n\
|
| 91 |
return "audio/mpeg"\n\
|
|
|
|
| 93 |
return "audio/wav"\n\
|
| 94 |
elif path.endswith(".ogg"):\n\
|
| 95 |
return "audio/ogg"\n\
|
| 96 |
+
else:\n\
|
| 97 |
+
return super().guess_type(path)\n\
|
| 98 |
\n\
|
| 99 |
PORT = int(os.environ.get("PORT", 7860))\n\
|
| 100 |
files = os.listdir(".")\n\
|