Use requests and just peek at the first few bytes to know if we want to process the file further. The approach can be used to also chunk/save the file of arbitrary size safely later on if desired. Signed-off-by: Zygmunt Krynicki <[email protected]>
Use requests and just peek at the first few bytes to know if we want to process the file further. The approach can be used to also chunk/save the file of arbitrary size safely later on if desired. Signed-off-by: Zygmunt Krynicki <[email protected]>