mirror of https://github.com/fafhrd91/actix-web
typo: bytes=bytes=0-9 to bytes=0-9
This commit is contained in:
parent
5a6c8d235b
commit
273bb313a3
|
|
@ -1,4 +1,4 @@
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
use derive_more::Error;
|
use derive_more::Error;
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ pub struct HttpRange {
|
||||||
impl HttpRange {
|
impl HttpRange {
|
||||||
/// Parses Range HTTP header string as per RFC 2616.
|
/// 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).
|
/// `size` is full size of response (file).
|
||||||
pub fn parse(header: &str, size: u64) -> Result<Vec<HttpRange>, ParseRangeErr> {
|
pub fn parse(header: &str, size: u64) -> Result<Vec<HttpRange>, ParseRangeErr> {
|
||||||
let ranges =
|
let ranges =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue