Permalink
Browse files

add https support

  • Loading branch information...
1 parent 2dc4538 commit 8de52dab6b6755b5719afb1a467945dd260b882c @benoitc committed May 17, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 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 -> [];

0 comments on commit 8de52da

Please sign in to comment.