diff options
author | Jordan Bracco <href@random.sh> | 2023-03-05 10:11:40 +0100 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2023-03-05 10:11:40 +0100 |
commit | d89a8980b1d7eda9d1ddb518f233be9210f937f5 (patch) | |
tree | 8ddd44644fd51e2de536004540f3f316e8dbb662 | |
parent | Couch fix (diff) |
couch: fixes
-rw-r--r-- | lib/couch.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/couch.ex b/lib/couch.ex index 59ffd93..6b39100 100644 --- a/lib/couch.ex +++ b/lib/couch.ex @@ -76,7 +76,11 @@ defmodule Couch do path = path |> Enum.filter(& &1) - |> Enum.map(fn(part) -> String.replace(part, "/", "%2F") end) + |> Enum.map(&to_string/1) + |> Enum.map(fn(part) -> part + |> String.replace("/", "%2F") + |> String.replace("#", "%23") + end) |> Path.join() url = base_url |