You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should probably have a sanity check before-hand. Even tho this is never meant to be in a production environment unless it's behind a proper HTTP reverse proxy.
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "obtain.life.py", line 638, in <module>
response = client.parse()
File "/srv/http/obtain.life/slimHTTP/slimhttpd.py", line 104, in parse
return http_request(self).parse()
File "/srv/http/obtain.life/slimHTTP/slimhttpd.py", line 421, in parse
response = self.methods[method](request=self, headers=self.headers, payload=self.payload, root=web_root)
File "/srv/http/obtain.life/slimHTTP/slimhttpd.py", line 332, in GET
return self.local_file(root=root, path=headers[b'path'], headers=headers, payload=payload)
File "/srv/http/obtain.life/slimHTTP/slimhttpd.py", line 303, in local_file
data = get_file(root, path, headers=headers, ignore_read=ignore_read)
File "/srv/http/obtain.life/slimHTTP/slimhttpd.py", line 215, in get_file
_, data_range = headers[b'range'].split(b'=',1)
ValueError: not enough values to unpack (expected 2, got 1)
Would be nice if we checked input against specific lengths etc.
For instance:
Should probably have a sanity check before-hand. Even tho this is never meant to be in a production environment unless it's behind a proper HTTP reverse proxy.
The text was updated successfully, but these errors were encountered: