@@ -, +, @@ --- Koha/REST/Plugin/Objects.pm | 4 ++++ Koha/REST/Plugin/Query.pm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) --- a/Koha/REST/Plugin/Objects.pm +++ a/Koha/REST/Plugin/Objects.pm @@ -182,6 +182,10 @@ shouldn't be called twice in it. $filtered_params = $c->merge_q_params( $filtered_params, $query_params, $result_set ); } + # request sequence id (i.e. 'draw' Datatables parameter) + $c->res->headers->add( 'x-koha-request-id' => $reserved_params->{'x-koha-request-id'} ) + if $reserved_params->{'x-koha-request-id'}; + # If search_limited exists, use it $result_set = $result_set->search_limited, if $result_set->can('search_limited'); --- a/Koha/REST/Plugin/Query.pm +++ a/Koha/REST/Plugin/Query.pm @@ -310,7 +310,7 @@ reference: https://metacpan.org/changes/distribution/JSON-Validator#L14 sub _reserved_words { - my @reserved_words = qw( _match _order_by _order_by[] _page _per_page q query x-koha-query); + my @reserved_words = qw( _match _order_by _order_by[] _page _per_page q query x-koha-query x-koha-request-id ); return \@reserved_words; } --