Commit f6b1130
authored
The metas endpoint was using `serverJSONLines` for serving queries that are
parameterized, which copies content from a reader to the response writer under
the hood. As a result no-parameterized query responses don't have range request
support.
The endpoint was however using `http.ServeContent` for cases when no parameters
were provided, which does have range request support.
This PR switches the `http.ServeContent` out for `serveJSONLines` to make sure
metas endpoint is consistent in it's lack of support for range requests.
Signed-off-by: Anik Bhattacharjee <[email protected]>
1 parent 5965d5c commit f6b1130
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
| 260 | + | |
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
| |||
0 commit comments