Project

General

Profile

Actions

Bug #5709

closed

$urlget().size is zero in some cases

Added by westor (GR) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
04/11/2023
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

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!

Actions #1

Updated by Per Amundsen about 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.

Actions #2

Updated by Per Amundsen about 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF