You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2022/08/16 10:22:02 UTC

[couchdb] branch fix-parse_max_age_test created (now 0f5673bc5)

This is an automated email from the ASF dual-hosted git repository.

ronny pushed a change to branch fix-parse_max_age_test
in repository https://gitbox.apache.org/repos/asf/couchdb.git


      at 0f5673bc5 Fix parse_max_age_test_() test after upgrading to mochiweb v3.1.0

This branch includes the following new commits:

     new 0f5673bc5 Fix parse_max_age_test_() test after upgrading to mochiweb v3.1.0

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Fix parse_max_age_test_() test after upgrading to mochiweb v3.1.0

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch fix-parse_max_age_test
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 0f5673bc5320b0b6b8c14b32af6bc7e36b79e30d
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Tue Aug 16 12:16:51 2022 +0200

    Fix parse_max_age_test_() test after upgrading to mochiweb v3.1.0
    
    After upgrading to mochiweb v3.1.0, whitespaces (incl. newline) are
    trimmed from the header field values. This commit adds more tests
    and changing the expected behavior of parsing the header fields.
---
 src/couch_replicator/src/couch_replicator_auth_session.erl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/couch_replicator/src/couch_replicator_auth_session.erl b/src/couch_replicator/src/couch_replicator_auth_session.erl
index 392f954ab..38fd09b46 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 @@ parse_max_age_test_() ->
             {"-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},