aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/rest/context.py
diff options
context:
space:
mode:
authorrr-2018-07-08 10:04:09 +0200
committerrr-2018-07-08 10:10:06 +0200
commitc9cb9aa5394d02582b1a716dd9e52e83391d9bea (patch)
treef9511f9ec54426c70089fab57d23f1ec3f230537 /server/szurubooru/rest/context.py
parentd85e746a656ca213bad8ce8a725e734990b73f72 (diff)
server/password-reset: try to construct full URL
Diffstat (limited to 'server/szurubooru/rest/context.py')
-rw-r--r--server/szurubooru/rest/context.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/szurubooru/rest/context.py b/server/szurubooru/rest/context.py
index 6236754..2aad101 100644
--- a/server/szurubooru/rest/context.py
+++ b/server/szurubooru/rest/context.py
@@ -11,11 +11,13 @@ Response = Optional[Dict[str, Any]]
class Context:
def __init__(
self,
+ env: Dict[str, Any],
method: str,
url: str,
headers: Dict[str, str] = None,
params: Request = None,
files: Dict[str, bytes] = None) -> None:
+ self.env = env
self.method = method
self.url = url
self._headers = headers or {}

© 2015 - 2026 Jakob L. Kreuze