diff options
author | Robert Newson <rnewson@apache.org> | 2018-09-19 10:10:31 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2018-09-19 10:10:31 +0100 |
commit | 318e21f07d037d2ef8ecf87e0b6c242e3a6571be (patch) | |
tree | 6e0479838fd507a7df8c182c6c7912d6b6cca8f3 | |
parent | 243ecb11834ec2f125ec75b2035a534e12e6364c (diff) | |
download | couchdb-hard-fail-cookie-mode.tar.gz |
Configure the replicator to acquire a hardfail session cookiearchive/hard-fail-cookie-modehard-fail-cookie-mode
-rw-r--r-- | src/couch_replicator/src/couch_replicator_auth_session.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couch_replicator/src/couch_replicator_auth_session.erl b/src/couch_replicator/src/couch_replicator_auth_session.erl index 24f7c8e3c..75bd564fc 100644 --- a/src/couch_replicator/src/couch_replicator_auth_session.erl +++ b/src/couch_replicator/src/couch_replicator_auth_session.erl @@ -346,10 +346,10 @@ get_session_url(Url) -> case lists:prefix(WithPort, Url) of true -> % Explicit port specified in the original url - WithPort ++ "/_session"; + WithPort ++ "/_session?hardfail=true"; false -> % Implicit proto default port was used - lists:concat([Proto, "://", Host, "/_session"]) + lists:concat([Proto, "://", Host, "/_session?hardfail=true"]) end. |