From a7dc6e496115782ec3658cba85009fc38e2aeb73 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 --- 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 e85ac7ee69a..d3b3b0a9bcd 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 4c5107b2028..a008ddb039f 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.34.1