You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2020/02/05 11:10:15 UTC

[couchdb] branch fix-2520 created (now 06b8bb7)

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

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


      at 06b8bb7  Fix highlight_post_tag parsing from json request body

This branch includes the following new commits:

     new 06b8bb7  Fix highlight_post_tag parsing from json request body

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 highlight_post_tag parsing from json request body

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

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

commit 06b8bb789c74f8952f0b4c0f220d7503bf4206ab
Author: Robert Newson <ro...@uk.ibm.com>
AuthorDate: Wed Feb 5 11:09:35 2020 +0000

    Fix highlight_post_tag parsing from json request body
    
    Fixes #2520
---
 src/dreyfus/src/dreyfus_httpd.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dreyfus/src/dreyfus_httpd.erl b/src/dreyfus/src/dreyfus_httpd.erl
index e985163..346f5ed 100644
--- a/src/dreyfus/src/dreyfus_httpd.erl
+++ b/src/dreyfus/src/dreyfus_httpd.erl
@@ -344,7 +344,7 @@ parse_json_index_param(<<"highlight_fields">>, Value) ->
     [{highlight_fields, Value}];
 parse_json_index_param(<<"highlight_pre_tag">>, Value) ->
     [{highlight_pre_tag, Value}];
-parse_json_index_param(<<"highlight_pos_tag">>, Value) ->
+parse_json_index_param(<<"highlight_post_tag">>, Value) ->
     [{highlight_post_tag, Value}];
 parse_json_index_param(<<"highlight_number">>, Value) ->
     [{highlight_number, parse_positive_int_param2("highlight_number", Value)}];