typo: bytes=bytes=0-9 to bytes=0-9

This commit is contained in:
Weixie Cui 2026-02-16 13:16:57 +08:00
parent 5a6c8d235b
commit 273bb313a3
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
use std::fmt;
use std::fmt;
use derive_more::Error;
@ -45,7 +45,7 @@ pub struct HttpRange {
impl HttpRange {
/// Parses Range HTTP header string as per RFC 2616.
///
/// `header` is HTTP Range header (e.g. `bytes=bytes=0-9`).
/// `header` is HTTP Range header (e.g. `bytes=0-9`).
/// `size` is full size of response (file).
pub fn parse(header: &str, size: u64) -> Result<Vec<HttpRange>, ParseRangeErr> {
let ranges =