From f17b9869091b40ef854a5c395a13c4f44e301847 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 4 Jan 2021 09:59:49 -0300 Subject: [PATCH] Bug 23857: Make adding club holds set the Location header Signed-off-by: Tomas Cohen Arazi --- Koha/REST/V1/Clubs/Holds.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/REST/V1/Clubs/Holds.pm b/Koha/REST/V1/Clubs/Holds.pm index 78f741acd0..4fad9c3938 100644 --- a/Koha/REST/V1/Clubs/Holds.pm +++ b/Koha/REST/V1/Clubs/Holds.pm @@ -121,6 +121,8 @@ sub add { default_patron_home => $default_patron_home }); + $c->res->headers->location( $c->req->url->to_string . '/' ); + return $c->render( status => 201, openapi => $club_hold->to_api -- 2.30.0