From d89a8980b1d7eda9d1ddb518f233be9210f937f5 Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Sun, 5 Mar 2023 10:11:40 +0100 Subject: couch: fixes --- lib/couch.ex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3