Commit c745544
authored
Fix truncated header value
In case of ranged request, the response headers looks like this:
--34a80522-fb29-4887-ab36-6d20ac045936
Content-Type: application/http; msgtype=response
HTTP/1.1 206 Partial Content
Accept-Ranges: Item
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Content-Range
Content-Type: application/json; charset=utf-8
Content-Range: Item 0-19/56
The current code just split for ' ' (space) and take the only first part of the value (here "Item" instead of "Item 0-19/56").
The fix just take the rest (not the headers name) of the line.1 parent 8f1a470 commit c745544
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
0 commit comments