GNServer 0.0.0.0.4__py3-none-any.whl → 0.0.0.0.5__py3-none-any.whl

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/_app.py CHANGED
@@ -278,7 +278,7 @@ class App:
278
278
 
279
279
 
280
280
  def static(self, path: str, dir_path: str):
281
- @self.get(f"/{path}/{{_path:path}}")
281
+ @self.get(f"{path}/{{_path:path}}")
282
282
  async def r_static(_path: str):
283
283
  file_path = os.path.join(dir_path, _path)
284
284
  if not os.path.isfile(file_path):
@@ -415,7 +415,7 @@ class App:
415
415
 
416
416
 
417
417
  self._quic.send_stream_data(request.stream_id, response.serialize(3), end_stream=True)
418
- logger.debug(f'Отправлен на сервер ответ -> {response.command()} {response.payload if len(response.payload) < 200 else ''}')
418
+ logger.debug(f'Отправлен на сервер ответ -> {response.command()} {response.payload if response.payload and len((response.payload)) < 200 else ''}')
419
419
  self.transmit()
420
420
  except Exception as e:
421
421
  logger.error('GNServer: error\n' + traceback.format_exc())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GNServer
3
- Version: 0.0.0.0.4
3
+ Version: 0.0.0.0.5
4
4
  Summary: GNServer
5
5
  Home-page: https://github.com/KeyisB/libs/tree/main/GNServer
6
6
  Author: KeyisB
@@ -0,0 +1,7 @@
1
+ GNServer/__init__.py,sha256=T6kT6WoJpmIXashMSHfuafb9DSePUIzw192h27j9a4M,1364
2
+ GNServer/_app.py,sha256=sLQwfXmEbMCpRulSVVqUGC5-4jdSQmtDD5JWWhsgXQs,17169
3
+ gnserver-0.0.0.0.5.dist-info/licenses/LICENSE,sha256=WH_t7dKZyWJ5Ld07eYIkUG4Tv6zZWXtAdsUqYAUesn0,1084
4
+ gnserver-0.0.0.0.5.dist-info/METADATA,sha256=uEYN3KzhtTxDmRKKNFMo2LYVIZu4O5BnL8BEPubn9KQ,804
5
+ gnserver-0.0.0.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ gnserver-0.0.0.0.5.dist-info/top_level.txt,sha256=-UOUBuD4u7Qkb1o5PdcwyA3kx8xCH2lwy0tJHi26Wb4,9
7
+ gnserver-0.0.0.0.5.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- GNServer/__init__.py,sha256=T6kT6WoJpmIXashMSHfuafb9DSePUIzw192h27j9a4M,1364
2
- GNServer/_app.py,sha256=Pnc0-KmepGNRsTINjSSOuSr_W9XYvbfWTeyyHYBmumk,17147
3
- gnserver-0.0.0.0.4.dist-info/licenses/LICENSE,sha256=WH_t7dKZyWJ5Ld07eYIkUG4Tv6zZWXtAdsUqYAUesn0,1084
4
- gnserver-0.0.0.0.4.dist-info/METADATA,sha256=FcQ0rw34w6HTyYmpqviPO3-a2cqes48-QSZienzEgok,804
5
- gnserver-0.0.0.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- gnserver-0.0.0.0.4.dist-info/top_level.txt,sha256=-UOUBuD4u7Qkb1o5PdcwyA3kx8xCH2lwy0tJHi26Wb4,9
7
- gnserver-0.0.0.0.4.dist-info/RECORD,,