GNServer 0.0.0.0.3__tar.gz → 0.0.0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/GNServer/_app.py +2 -2
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/GNServer.egg-info/PKG-INFO +1 -1
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/PKG-INFO +1 -1
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/setup.py +1 -1
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/GNServer/__init__.py +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/GNServer.egg-info/SOURCES.txt +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/GNServer.egg-info/dependency_links.txt +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/GNServer.egg-info/requires.txt +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/GNServer.egg-info/top_level.txt +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/LICENSE +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/GNServer/mmbConfig.json +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/LICENSE +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/MANIFEST.in +0 -0
- {gnserver-0.0.0.0.3 → gnserver-0.0.0.0.4}/setup.cfg +0 -0
@@ -284,7 +284,7 @@ class App:
|
|
284
284
|
if not os.path.isfile(file_path):
|
285
285
|
return gn.GNResponse('gn:backend:404')
|
286
286
|
|
287
|
-
mime_type = guess_type(file_path)
|
287
|
+
mime_type = guess_type(file_path.split('/')[-1])
|
288
288
|
async with aiofiles.open(file_path, "rb") as f:
|
289
289
|
data = f.read()
|
290
290
|
|
@@ -446,7 +446,7 @@ class App:
|
|
446
446
|
data = await file.read()
|
447
447
|
|
448
448
|
payload.pop(ext_file)
|
449
|
-
payload['files'] = [{'mime-type': guess_type(
|
449
|
+
payload['files'] = [{'mime-type': guess_type(ext_file_.split('/')[-1]), 'data': data}]
|
450
450
|
except Exception as e:
|
451
451
|
payload[ext_file] = f'GNServer error: {e}'
|
452
452
|
logger.debug(f'error resolving extra response -> {traceback.format_exc()}')
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|