diff options
author | cbdev <cb@cbcdn.com> | 2021-10-29 20:22:18 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2021-10-29 20:22:18 +0200 |
commit | b87909c9dd7aabe7b8f8bd63138876dff5cd2200 (patch) | |
tree | 55479eea6f24c824f1aef4e3d312cad7023e5ceb /backend/HTTP.py | |
parent | dad7fcafa4d4b2ab3fd59edb01c57a12155f0375 (diff) | |
download | cargohold-b87909c9dd7aabe7b8f8bd63138876dff5cd2200.tar.gz cargohold-b87909c9dd7aabe7b8f8bd63138876dff5cd2200.tar.bz2 cargohold-b87909c9dd7aabe7b8f8bd63138876dff5cd2200.zip |
Implement gallery view, add noscript notice, implement rudimentary overwrite protection
Diffstat (limited to 'backend/HTTP.py')
-rw-r--r-- | backend/HTTP.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/backend/HTTP.py b/backend/HTTP.py deleted file mode 100644 index 4ba3d90..0000000 --- a/backend/HTTP.py +++ /dev/null @@ -1,16 +0,0 @@ -def cookies(data): - cookies = {} - for cookie in data.split(';'): - data = cookie.strip().split('=', 1) - if(len(data) == 2): - cookies[data[0]] = data[1] - return cookies - -def formdata(data): - fields = {} - for field in data.split('&'): - data = field.strip().split('=', 1) - if len(data) == 2: - fields[data[0]] = data[1] - # FIXME URLdecode the entries - return fields |