diff --git a/app/hyap.hy b/app/hyap.hy index 9ba82e3..67ecf87 100644 --- a/app/hyap.hy +++ b/app/hyap.hy @@ -8,6 +8,6 @@ (.info logger url) (return (.json (with/a [client (.AsyncClient httpx)] - (await (.get client url :headers - {"User-Agent" config.USER_AGENT - "Accept" config.AP_CONTENT_TYPE})))))) + (let [headers {"User-Agent" config.USER_AGENT + "Accept" config.AP_CONTENT_TYPE}] + (await (.get client url :headers headers)))))))