diff --git a/src/request.rs b/src/request.rs index 504115d..bf444d1 100644 --- a/src/request.rs +++ b/src/request.rs @@ -518,7 +518,7 @@ impl Request { /// .build(); /// assert_eq!(req1.get_host().unwrap(), "cool.server"); /// - /// let req2 = ureq::post("/some/path") + /// let req2 = ureq::post("http://localhost/some/path") /// .build(); /// assert_eq!(req2.get_host().unwrap(), "localhost"); /// ``` diff --git a/src/test/simple.rs b/src/test/simple.rs index 0c4a508..fd7cc3c 100644 --- a/src/test/simple.rs +++ b/src/test/simple.rs @@ -122,7 +122,7 @@ fn escape_path() { #[test] fn request_debug() { - let req = get("/my/page") + let req = get("http://localhost/my/page") .set("Authorization", "abcdef") .set("Content-Length", "1234") .set("Content-Type", "application/json") @@ -136,7 +136,7 @@ fn request_debug() { Content-Length: 1234, Content-Type: application/json])" ); - let req = get("/my/page?q=z") + let req = get("http://localhost/my/page?q=z") .query("foo", "bar baz") .set("Authorization", "abcdef") .build();