diff --git a/Changelog.md b/Changelog.md index 6a2d0d5..b6c4e54 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,6 +7,7 @@ Bug Fixes * Apply unsafe filter (if requested) also on subsequent validation runs in server mode. ([#407]) * Update all metrics on all validation runs. ([#407]) +* Show the status code instead of -1 in RRDP status metrics. ([#408]) Other Changes @@ -15,6 +16,7 @@ Other Changes [#406]: https://github.com/NLnetLabs/routinator/pull/406 [#407]: https://github.com/NLnetLabs/routinator/pull/407 +[#408]: https://github.com/NLnetLabs/routinator/pull/408 ## 0.8.0-rc1 diff --git a/src/rrdp/http.rs b/src/rrdp/http.rs index 8d2d12c..1a8ac93 100644 --- a/src/rrdp/http.rs +++ b/src/rrdp/http.rs @@ -244,9 +244,7 @@ impl HttpClient { &self, uri: &uri::Https ) -> Result { - self.client().get(uri.as_str()).send().and_then(|res| { - res.error_for_status() - }).map_err(|err| { + self.client().get(uri.as_str()).send().map_err(|err| { warn!("RRDP {}: {}", uri, err); Error })