Skip to content

Commit

Permalink
Allow missing bytes= prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Dolitsky <[email protected]>
  • Loading branch information
jdolitsky committed Apr 13, 2023
1 parent 6520ed9 commit b077648
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conformance/02_push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ var test02Push = func() {
Expect(err).To(BeNil())
Expect(resp.StatusCode()).To(Equal(http.StatusNoContent))
Expect(resp.Header().Get("Location")).ToNot(BeEmpty())
Expect(resp.Header().Get("Range")).To(Equal(testBlobBChunk1Range))
Expect(resp.Header().Get("Range")).To(SatisfyAny(
Equal(testBlobBChunk1Range), // Allow missing "bytes=" prefix
Equal(fmt.Sprintf("bytes=%s", testBlobBChunk1Range)),
))
lastResponse = resp
})

Expand Down

0 comments on commit b077648

Please sign in to comment.