diff options
Diffstat (limited to 'src/transport.lisp')
| -rw-r--r-- | src/transport.lisp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport.lisp b/src/transport.lisp index bb451c1..6906e6d 100644 --- a/src/transport.lisp +++ b/src/transport.lisp | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | (:import-from :cl+ssl) | 6 | (:import-from :cl+ssl) |
| 7 | (:import-from :dex) | 7 | (:import-from :dex) |
| 8 | (:import-from :log) | 8 | (:import-from :log) |
| 9 | (:import-from :state :base-uri) | ||
| 9 | (:import-from :ukkoclot/src/serializing :fixup-args :parse-value) | 10 | (:import-from :ukkoclot/src/serializing :fixup-args :parse-value) |
| 10 | (:import-from :ukkoclot/src/state :bot-base-uri) | ||
| 11 | (:local-nicknames | 11 | (:local-nicknames |
| 12 | (:jzon :com.inuoe.jzon)) | 12 | (:jzon :com.inuoe.jzon)) |
| 13 | (:export :do-call)) | 13 | (:export :do-call)) |
| @@ -47,9 +47,9 @@ See `do-call'." | |||
| 47 | (error "TG error ~A: ~A ~:A" | 47 | (error "TG error ~A: ~A ~:A" |
| 48 | error-code description parameters))))))) | 48 | error-code description parameters))))))) |
| 49 | 49 | ||
| 50 | (defun do-call (bot method path out-type args) | 50 | (defun do-call (method path out-type args) |
| 51 | "Perform a HTTP call." | 51 | "Perform a HTTP call." |
| 52 | (let ((uri (concatenate 'string (bot-base-uri bot) path)) | 52 | (let ((uri (concatenate 'string (base-uri) path)) |
| 53 | (args-encoded (fixup-args args))) | 53 | (args-encoded (fixup-args args))) |
| 54 | (log:debug "~A .../~A ~S" method path args-encoded) | 54 | (log:debug "~A .../~A ~S" method path args-encoded) |
| 55 | (do-call% method uri out-type args-encoded))) | 55 | (do-call% method uri out-type args-encoded))) |