<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Invalid Content-Range header for HTTP range requests when downloading files from asset directories]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">We are seeing an issue where we are trying to download files from a ProGet asset directory using wget's <code>--continue</code> flag but wget is returning with exit code 4.</p>
<p dir="auto">We think we have tracked it down to the following issue:</p>
<p dir="auto">ProGet appears to be returning an invalid <code>Content-Range</code> header for HTTP range requests.</p>
<p dir="auto">For example, for a file with a total length of 1000 bytes, where 500 bytes have already been downloaded, ProGet returns:</p>
<pre><code>$ wget --server-response --continue --tries 1 https://&lt;PROGET_URL&gt;/endpoints/assets/content/example_file
HTTP/1.1 206 Partial Content
Content-Range: bytes 500-1000/1000
</code></pre>
<p dir="auto">While other HTTP servers (tested with <code>uv run --with rangehttpserver -m RangeHTTPServer</code>) returns the following:</p>
<pre><code>$ wget --server-response --continue --tries 1 http://0.0.0.0:8000/example_file
HTTP/1.0 206 Partial Content
Content-Range: bytes 500-999/1000
</code></pre>
<p dir="auto">Similarly, for a file with a total length of 1000 bytes, which has already been fully downloaded, ProGet returns:</p>
<pre><code>$ wget --server-response --continue --tries 1 https://&lt;PROGET_URL&gt;/endpoints/assets/content/example_file
HTTP/1.1 206 Partial Content
Content-Range: bytes: 1000-1000/1000
</code></pre>
<p dir="auto">While other HTTP servers returns the following:</p>
<pre><code>$ wget --server-response --continue --tries 1 http://0.0.0.0:8000/example_file
HTTP/1.0 416 Requested Range Not Satisfiable
</code></pre>
<p dir="auto">Looking at <a href="https://datatracker.ietf.org/doc/html/rfc9110#name-content-range" rel="nofollow ugc">https://datatracker.ietf.org/doc/html/rfc9110#name-content-range</a>, I think the current behaviour is incorrect as byte positions are zero-based. In this case the last valid byte should be <code>999</code>, not <code>1000</code>.</p>
<p dir="auto">Curl seems to ignore this issue, but we are using bitbake which does not allow easily swapping out wget for curl so this is not a solution for us.</p>
<p dir="auto">Has anyone else seen this, or is there a known fix/workaround?</p>
<p dir="auto">Thanks,<br />
Joris</p>
]]></description><link>https://forums.inedo.com/topic/5820/invalid-content-range-header-for-http-range-requests-when-downloading-files-from-asset-directories</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 11:32:19 GMT</lastBuildDate><atom:link href="https://forums.inedo.com/topic/5820.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Aug 2026 01:56:08 GMT</pubDate><ttl>60</ttl></channel></rss>