Initial commit to Gitea
This commit is contained in:
@@ -134,6 +134,10 @@ class cRequestHandler:
|
||||
self._Status = str(e)
|
||||
return f'<!-- Error {e} -->' if not self.ignoreErrors else ''
|
||||
|
||||
# Alias for getHtml() - used by original xStream site plugins
|
||||
def request(self, encoding='utf-8'):
|
||||
return self.getHtml(encoding)
|
||||
|
||||
def getJson(self):
|
||||
import json
|
||||
text = self.getHtml()
|
||||
|
||||
Reference in New Issue
Block a user