Weilbyte
3 years ago
No known key found for this signature in database
GPG Key ID: E1EB2BFCF73B5B9F
1 changed files with
1 additions and
1 deletions
-
PVEDiscordDark/serve.py
|
@ -37,7 +37,7 @@ class Server(BaseHTTPRequestHandler): |
|
|
elif ext == "js": |
|
|
elif ext == "js": |
|
|
data = open(os.path.join(DIR_JS, "PVEDiscordDark.js"), "rb").read() |
|
|
data = open(os.path.join(DIR_JS, "PVEDiscordDark.js"), "rb").read() |
|
|
type = "application/javascript" |
|
|
type = "application/javascript" |
|
|
elif ext == "png" or ext == "jpg" or ext == "jpeg": |
|
|
elif ext == "png" or ext == "jpg" or ext == "jpeg" or ext == "svg": |
|
|
try: |
|
|
try: |
|
|
data = open(os.path.join(DIR_IMAGES, file), "rb").read() |
|
|
data = open(os.path.join(DIR_IMAGES, file), "rb").read() |
|
|
type = f"image/{ext}" |
|
|
type = f"image/{ext}" |
|
|