Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add https support

  • Loading branch information...
commit 8de52dab6b6755b5719afb1a467945dd260b882c 1 parent 2dc4538
Benoit Chesneau authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/erica_util.erl
10 src/erica_util.erl
View
@@ -51,7 +51,15 @@ db_from_string(DbString) ->
end,
Url = ibrowse_lib:parse_url(DbUrl),
- Server = couchbeam:server_connection(Url#url.host, Url#url.port),
+ ServerOptions = case Url#url.protocol of
+ https ->
+ [{is_ssl, true}];
+ _ ->
+ []
+ end,
+
+ Server = couchbeam:server_connection(Url#url.host, Url#url.port,
+ "", ServerOptions),
Options = case Url#url.username of
undefined -> [];
Please sign in to comment.
Something went wrong with that request. Please try again.