Update couchdb-mochiweb to v3.1.0
diff --git a/rebar.config.script b/rebar.config.script
index bba854d..fc409c5 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -157,7 +157,7 @@
{hyper, "hyper", {tag, "CouchDB-2.2.0-7"}},
{ibrowse, "ibrowse", {tag, "CouchDB-4.4.2-5"}},
{jiffy, "jiffy", {tag, "1.1.1"}},
-{mochiweb, "mochiweb", {tag, "v3.0.0"}},
+{mochiweb, "mochiweb", {tag, "v3.1.0"}},
{meck, "meck", {tag, "0.9.2"}},
{recon, "recon", {tag, "2.5.2"}}
].
diff --git a/src/couch_replicator/src/couch_replicator_auth_session.erl b/src/couch_replicator/src/couch_replicator_auth_session.erl
index 392f954..38fd09b 100644
--- a/src/couch_replicator/src/couch_replicator_auth_session.erl
+++ b/src/couch_replicator/src/couch_replicator_auth_session.erl
@@ -705,7 +705,10 @@
{"-10", undefined},
{"\ufeff", undefined},
{"*", undefined},
- {"\n1", undefined},
+ {"\n1", 1},
+ {"1\n", 1},
+ {"\t\n 1 \t\n", 1},
+ {"", undefined},
{"1", 1},
{"1 1", undefined},
{"2", 2},