Open outsbart opened 2 years ago
Funny little bug indeed. Taking a quick look, the issue is, I think, that this URL returns an infinite chunked 'audio/mpeg'. This means that the read at https://github.com/CERN-CERT/WAD/blob/master/wad/detection.py#L97 never returns. I guess we should set up a sort of limit there...
Exactly, one of the solution could be using requests' iter_content and allowing the code to stop reading after a certain size threshold is reached.
Something like this
funny little bug
how to reproduce: wad.Detector().detect("https://webradio.divsi.unimi.it")