Improves W3C tests client

pull/10/head
Tpt 6 years ago
parent 5ba4b99f1a
commit 1871fed255
  1. 5
      tests/rdf_test_cases.rs

@ -193,10 +193,11 @@ impl RDFClient {
fn get(&self, url: &Url) -> Result<Response> {
match self.client.get(url.clone()).send() {
Ok(response) => Ok(response),
Err(error) => if error.description() == "message is incomplete" {
Err(error) => if error.description() == "parsed HTTP message from remote is incomplete"
{
self.get(url)
} else {
Err("HTTP request error".into()) //TODO: improve
Err(format!("HTTP request error: {}", error.description()).into())
},
}
}

Loading…
Cancel
Save