From 06b8bb789c74f8952f0b4c0f220d7503bf4206ab Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Wed, 5 Feb 2020 11:09:35 +0000 Subject: 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 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)}]; -- cgit v1.2.1