Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
clpm
clpi
Compare Revisions
22879d0f2ec4da2370fc8324d118a3524cce3dfe...4af3147eb93f8f6640ac5b99331540905c9f8bba
Commits (1)
Fix Range header when requesting the tail of a file
· 4af3147e
Eric Timmons
authored
May 24, 2020
Was off by one. Turns out most web servers don't care, but hunchentoot does!
4af3147e
Hide whitespace changes
Inline
Side-by-side
src/object-store-http.lisp
View file @
4af3147e
...
...
@@ -86,7 +86,7 @@
(
when
(
=
offset
(
parse-integer
size
))
(
return-from
open-object-stream
(
make-concatenated-stream
)))
;; Server supports range requests!
(
push
(
cons
:range
(
format
nil
"bytes=~D-~D"
offset
size
))
headers
)))
(
push
(
cons
:range
(
format
nil
"bytes=~D-~D"
offset
(
1-
size
))
)
headers
)))
(
multiple-value-bind
(
s
code
)
(
http-client-request
(
http-object-store-http-client
object-store
)
uri
:additional-headers
headers
...
...