   (is (= "глава" (string (GET "http://localhost:8123/issue-1")))))
 
 (deftest get-via-proxy
-  (let [target "http://localhost:8123/proxy-req"
-        resp (GET target :proxy {:host "localhost" :port 8123})
-        headers (headers resp)]
-    (is (= target (:target headers)))))
+  (let [resp (GET "http://localhost:8123/proxy-req" :proxy {:host "localhost" :port 8123})
+        headers (headers resp)]
+    (is (= "/proxy-req" (:target headers)))))
 
 (deftest get-with-cookie
   (let [cv "sample-value"

    (let [resp (GET "http://localhost:8123/timeout" :timeout 100)]
      (await resp)
      (is (true? (failed? resp)))
      (is (instance? TimeoutException (error resp)))))
  (testing "infinite timeout"
    (let [resp (GET "http://localhost:8123/timeout" :timeout -1)]
      (await resp)

      (let [resp (GET "http://localhost:8123/timeout")]
        (await resp)
        (is (failed? resp))
        (when (failed? resp)
          (let [err (error resp)]
            (is (instance? IOException err))
            (is (= "No response received. Connection timed out after 100" (.getMessage err)))))))))

(deftest closing-client
  (binding [*client* (create-client)]
