**What this PR does / why we need it**:
If the http server closes the connection, the client may also return a
non-empty reader io.ReadCloser.
**Which issue(s) this PR fixes**:
Fixes#6150
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
@ -98,6 +98,7 @@ Check the history of the branch FIXME.
* [7414](https://github.com/grafana/loki/pull/7414) **thepalbi**: Add basic tracing support
##### Fixes
* [7394](https://github.com/grafana/loki/pull/7394) **liguozhong**: Fix issue with the Cloudflare target that caused it to stop working after it received an error in the logpull request as explained in issue https://github.com/grafana/loki/issues/6150
* [6766](https://github.com/grafana/loki/pull/6766) **kavirajk**: fix(logql): Make `LabelSampleExtractor` ignore processing the line if it doesn't contain that specific label. Fixes unwrap behavior explained in the issue https://github.com/grafana/loki/issues/6713
* [7016](https://github.com/grafana/loki/pull/7016) **chodges15**: Fix issue with dropping logs when a file based SD target's labels are updated
* [7461](https://github.com/grafana/loki/pull/7461) **MarNicGit**: Promtail: Fix collecting userdata field from Windows Event Log
level.Warn(t.logger).Log("msg","failed iterating over logs, out of cloudflare range, not retrying","err",err,"start",start,"end",end,"retries",backoff.NumRetries())