Mention test case
This commit is contained in:
parent
33f434f85e
commit
03faa9dbb7
|
@ -16,7 +16,7 @@ type contentRange struct {
|
||||||
|
|
||||||
// parseContentRange parse a Content-Range string like "5-10/100".
|
// parseContentRange parse a Content-Range string like "5-10/100".
|
||||||
// see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 .
|
// see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 .
|
||||||
// "*" values causes End/Size to be set to -1.
|
// "*" values causes End/Size to be set to -1, see test case for more details.
|
||||||
func parseContentRange(s string) (*contentRange, error) {
|
func parseContentRange(s string) (*contentRange, error) {
|
||||||
const prefix = "bytes "
|
const prefix = "bytes "
|
||||||
offset := strings.Index(s, prefix)
|
offset := strings.Index(s, prefix)
|
||||||
|
|
Loading…
Reference in New Issue