diff --git a/README.org b/README.org index 20dcd88..568fa15 100644 --- a/README.org +++ b/README.org @@ -151,7 +151,7 @@ supported headers: - proxy - noproxy - cookie -- schema +- scheme - host - port - user diff --git a/ob-http.el b/ob-http.el index f878f38..3c1d360 100644 --- a/ob-http.el +++ b/ob-http.el @@ -39,7 +39,7 @@ (noproxy . :any) (curl . :any) (cookie . :any) - (schema . :any) + (scheme . :any) (host . :any) (port . :any) (user . :any) @@ -190,7 +190,7 @@ (defun ob-http-construct-url (path params) (if (s-starts-with? "/" path) (s-concat - (format "%s://" (or (assoc-default :schema params) "http")) + (format "%s://" (or (assoc-default :scheme params) "http")) (assoc-default :host params) (when (assoc :port params) (format ":%s" (assoc-default :port params))) diff --git a/tests.el b/tests.el index 25f53a4..0e25778 100644 --- a/tests.el +++ b/tests.el @@ -17,6 +17,6 @@ (let ((params '((:host . "localhost") (:port . 8080) - (:schema . "https")))) + (:scheme . "https")))) (should (equal (ob-http-construct-url "/" params) "https://localhost:8080/"))))