summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2021-09-08 11:31:09 +0200
committerJordan Bracco <href@random.sh>2021-09-08 11:31:09 +0200
commit1dad0c28ac0af45f0b5b1171af2a117fc6b341bf (patch)
treee493b70f4fbe6206cc7dbad807a0ac915749a340
parentBump exdocs and depend formally on poison (diff)
Fix url handlingmaster
-rw-r--r--lib/powerdnsex/http_client.ex6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/powerdnsex/http_client.ex b/lib/powerdnsex/http_client.ex
index 98e299d..26bc6b5 100644
--- a/lib/powerdnsex/http_client.ex
+++ b/lib/powerdnsex/http_client.ex
@@ -7,7 +7,11 @@ defmodule PowerDNSex.HttpClient do
alias PowerDNSex.Config
- def process_url(url), do: Config.powerdns_url() <> url
+ def process_url("/"<>url), do: process_url(url)
+
+ def process_url(url) do
+ Config.powerdns_url() <> url
+ end
def process_request_headers(headers) do
custom = ["X-API-Key": Config.powerdns_token()]