summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <robert.newson@uk.ibm.com>2020-02-05 11:09:35 +0000
committerRobert Newson <robert.newson@uk.ibm.com>2020-02-05 11:09:35 +0000
commit06b8bb789c74f8952f0b4c0f220d7503bf4206ab (patch)
tree4b46f1da94c259b177d50debc6ab767fc75c59d5
parent150e056af06c3954262d880600c23eae852c95eb (diff)
downloadcouchdb-fix-2520.tar.gz
Fix highlight_post_tag parsing from json request bodyfix-2520
Fixes #2520
-rw-r--r--src/dreyfus/src/dreyfus_httpd.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dreyfus/src/dreyfus_httpd.erl b/src/dreyfus/src/dreyfus_httpd.erl
index e9851639b..346f5ede6 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)}];