Skip to content

Commit 5505c25

Browse files
committed
Fix XML responses being served with JSON []
1 parent 083114f commit 5505c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/v1/reviews/PKPReviewController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ public function exportReviewXML(Request $illuminateRequest): JsonResponse
722722
/**
723723
* Download exported review file from temporary file ID
724724
*/
725-
public function getExportedFile(Request $illuminateRequest): JsonResponse
725+
public function getExportedFile(Request $illuminateRequest): Response
726726
{
727727
$fileId = (int) $illuminateRequest->route('fileId');
728728
$currentUser = Application::get()->getRequest()->getUser();
@@ -734,7 +734,7 @@ public function getExportedFile(Request $illuminateRequest): JsonResponse
734734
'error' => __('api.403.unauthorized'),
735735
], Response::HTTP_FORBIDDEN);
736736
}
737-
return response()->json([], Response::HTTP_OK);
737+
return response()->noContent(Response::HTTP_OK);//json([], Response::HTTP_OK);
738738
}
739739

740740
/**

0 commit comments

Comments
 (0)