From e748ff2eee74fdb5bd5d76f90d4c4adeadbabdfe Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 15 Sep 2025 10:41:49 +0200 Subject: [PATCH] Bug 37622: Remove location from 2 preservation 'update' routes Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- Koha/REST/V1/Preservation/Processings.pm | 1 - Koha/REST/V1/Preservation/Trains.pm | 1 - 2 files changed, 2 deletions(-) diff --git a/Koha/REST/V1/Preservation/Processings.pm b/Koha/REST/V1/Preservation/Processings.pm index dafb6eff789..503ae62b5b6 100644 --- a/Koha/REST/V1/Preservation/Processings.pm +++ b/Koha/REST/V1/Preservation/Processings.pm @@ -154,7 +154,6 @@ sub update { $processing->set_from_api($body)->store; $processing->attributes($attributes); - $c->res->headers->location( $c->req->url->to_string . '/' . $processing->processing_id ); return $c->render( status => 200, openapi => $c->objects->to_api($processing), diff --git a/Koha/REST/V1/Preservation/Trains.pm b/Koha/REST/V1/Preservation/Trains.pm index 53fc2092be4..59e9787dcf1 100644 --- a/Koha/REST/V1/Preservation/Trains.pm +++ b/Koha/REST/V1/Preservation/Trains.pm @@ -151,7 +151,6 @@ sub update { $train->set_from_api($body)->store; - $c->res->headers->location( $c->req->url->to_string . '/' . $train->train_id ); return $c->render( status => 200, openapi => $c->objects->to_api($train), -- 2.51.0