mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
quick upload test too
This commit is contained in:
parent
ed7727f7cb
commit
27a03510c5
2 changed files with 32 additions and 15 deletions
|
@ -53,6 +53,11 @@ def get_ramdisk():
|
|||
return ret
|
||||
|
||||
|
||||
class NullBroker(object):
|
||||
def put(*args):
|
||||
pass
|
||||
|
||||
|
||||
class VSock(object):
|
||||
def __init__(self, buf):
|
||||
self._query = buf
|
||||
|
@ -71,6 +76,8 @@ class VSock(object):
|
|||
|
||||
class VHttpSrv(object):
|
||||
def __init__(self):
|
||||
self.broker = NullBroker()
|
||||
|
||||
aliases = ["splash", "browser", "browser2", "msg", "md", "mde"]
|
||||
self.j2 = {x: J2_FILES for x in aliases}
|
||||
|
||||
|
@ -86,5 +93,5 @@ class VHttpConn(object):
|
|||
self.log_src = "a"
|
||||
self.hsrv = VHttpSrv()
|
||||
self.nbyte = 0
|
||||
self.t0 = time.time()
|
||||
|
||||
self.workload = 0
|
||||
self.t0 = time.time()
|
Loading…
Add table
Add a link
Reference in a new issue