aboutsummaryrefslogtreecommitdiff
path: root/lib/http/range_position_example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http/range_position_example_test.go')
-rw-r--r--lib/http/range_position_example_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/http/range_position_example_test.go b/lib/http/range_position_example_test.go
index a0a7ed9f..8d8177c3 100644
--- a/lib/http/range_position_example_test.go
+++ b/lib/http/range_position_example_test.go
@@ -15,11 +15,11 @@ func ExampleParseContentRange() {
fmt.Println(libhttp.ParseContentRange(`bytes -10/x`)) // Invalid, invalid "size".
fmt.Println(libhttp.ParseContentRange(`bytes`)) // Invalid, missing position.
// Output:
- // <nil>
- // 10-19
- // <nil>
- // <nil>
- // <nil>
- // <nil>
- // <nil>
+ // <nil> ParseContentRange: invalid Content-Range "bytes 10-/20": strconv.ParseInt: parsing "": invalid syntax
+ // 10-19 <nil>
+ // <nil> ParseContentRange: invalid Content-Range "bytes -10/20"
+ // <nil> ParseContentRange: invalid Content-Range "10-20/20"
+ // <nil> ParseContentRange: invalid Content-Range "bytes 10-"
+ // <nil> ParseContentRange: invalid Content-Range "bytes -10/x"
+ // <nil> ParseContentRange: invalid Content-Range "bytes"
}