Commit f88c3b8
committed
(catalogd)
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]>serveJSON lines instead of http.serverContent for no-params1 parent 099a6cf commit f88c3b8
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
| 246 | + | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
| |||
0 commit comments