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
Then in werkzeug it is converted to a header like this:
defto_header(self):
"""Converts the object back into an HTTP header."""ranges= []
forbegin, endinself.ranges:
ifendisNone:
ranges.append(f"{begin}-"ifbegin>=0elsestr(begin))
else:
ranges.append(f"{begin}-{end-1}")
returnf"{self.units}={','.join(ranges)}"
For example, request header is 792-1955, request.range is 792-1955, response.begin and response.end are 792-1956, content_range:ContentRange is 792-1955, when converted to response header, it is 792-1954.
I think this is a quart problem, according to werkzeug's documentation, end is not included in the range, so end should not be reduced by one.
Environment:
Python version:3.12.2
Quart version:0.19.4
The text was updated successfully, but these errors were encountered:
I've found a bug about
ContentRange
.This is how it is used in
quart
:Then in
werkzeug
it is converted to a header like this:For example, request header is 792-1955,
request.range
is 792-1955,response.begin
andresponse.end
are 792-1956,content_range:ContentRange
is 792-1955, when converted to response header, it is 792-1954.I think this is a quart problem, according to werkzeug's documentation, end is not included in the range, so end should not be reduced by one.
Environment:
The text was updated successfully, but these errors were encountered: