You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the helper function Get-ChocolateyWebFile is called with an item "Range" in the options parameter an exception is thrown, because the range header is a restricted header (see: Remarks HttpWebRequest). It should use the HttpWebRequest.AddRange method (see: AddRange).
The method still works after the exception, but the header is not set properly and the whole file will be downloaded instead of only a part of it.
Greetings,
MichaelZp
The text was updated successfully, but these errors were encountered:
Adds support for the resticted Range Header in the
helper functions Get-WebHeaders and
Get-ChocolateyWebFile. Previously setting the
Range Header in the -Options would throw an
non stopping error and ignore the value.
Hi,
if the helper function Get-ChocolateyWebFile is called with an item "Range" in the options parameter an exception is thrown, because the range header is a restricted header (see: Remarks HttpWebRequest). It should use the HttpWebRequest.AddRange method (see: AddRange).
The method still works after the exception, but the header is not set properly and the whole file will be downloaded instead of only a part of it.
Greetings,
MichaelZp
The text was updated successfully, but these errors were encountered: