Bug #5709
closed$urlget().size is zero in some cases
0%
Description
Hello,
I am trying to use $urlget().size
prop but seems is 0
when using non-exe file types.
It works with .exe file type: //alias dl_callback echo -ag is: $!urlget($1).url -> $!urlget($1).size $(|) alias dl_callback | noop $urlget(https://adiirc.com/AdiIRC64_45.exe,gf,,dl_callback)
It doesn't works with any other file type: //alias dl_callback echo -ag is: $!urlget($1).url -> $!urlget($1).size $(|) alias dl_callback | noop $urlget(https://raw.githubusercontent.com/SReject/JSON-For-Mirc/master/src/JSON%20For%20mIRC.mrc,gf,,dl_callback)
As it seems in $urlget().reply in both cases exist Content-Length
header with a value.
- Thanks!
Updated by Per Amundsen over 1 year ago
- Status changed from New to Resolved
There is probably a good reason why .NET reports is as 0, but I'm not sure why. Made it get it from the header when .NET reports 0 and the header is available.