Merge pull request #2096 from geekless/missing-encodeResponse

Add missing @helper.encodeResponse
This commit is contained in:
ZeroNet 2019-07-15 10:59:03 +02:00 committed by GitHub
commit 18c407bfc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -373,6 +373,7 @@ class UiRequestPlugin(object):
gc.collect() # Implicit grabage collection
yield "Done in %.1f" % (time.time() - s)
@helper.encodeResponse
def actionDumpobj(self):
import gc
@ -410,6 +411,7 @@ class UiRequestPlugin(object):
gc.collect() # Implicit grabage collection
@helper.encodeResponse
def actionListobj(self):
import gc
@ -827,6 +829,7 @@ class UiRequestPlugin(object):
yield "<br>Done. Total: %.2fs" % (time.time() - t)
@helper.encodeResponse
def actionGcCollect(self):
import gc
self.sendHeader()

View File

@ -130,6 +130,7 @@ class FileRequestPlugin(object):
@PluginManager.registerTo("UiRequest")
class UiRequestPlugin(object):
@helper.encodeResponse
def actionStatsBootstrapper(self):
self.sendHeader()