Skip to content
Snippets Groups Projects
Commit aa9e5f3e authored by Antoine Fontaine's avatar Antoine Fontaine :8ball:
Browse files

Moved some error-prone copy-pasta-prone function into one: request_url

It will allow smart cache detection «there is a file, so I can get it from cache»
and smart cache date usage «can we use that file? — no, it's too old»
mainly because it will avoid code duplication.
It will also enable better disconnection detection, as we can now handle the
«we got redirected to /enrol» in one place

For now, we keep download_file_async separate, because it avoids keeping the whole file in RAM.
parent e8d7a714
Branches
Tags
1 merge request!11Added folder support
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment