Bugzilla – Attachment 114779 Details for
Bug 23857
Club holds endpoint not setting Location header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23857: Make adding club holds set the Location header
Bug-23857-Make-adding-club-holds-set-the-Location-.patch (text/plain), 818 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2021-01-04 13:01:28 UTC
(
hide
)
Description:
Bug 23857: Make adding club holds set the Location header
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-01-04 13:01:28 UTC
Size:
818 bytes
patch
obsolete
>From f17b9869091b40ef854a5c395a13c4f44e301847 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <tomascohen@theke.io> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23857
:
114778
|
114779
|
114782
|
114783
|
114784
|
115789
|
115790
|
115791