From 49e11b725e5a8bf2b0d6401fa2273e55a1e04bda Mon Sep 17 00:00:00 2001 From: Mickey Nasriachi Date: Wed, 8 Nov 2017 07:02:48 +0000 Subject: [PATCH] Reverse dependencies: pass 'sort' in the request body The 'sort' param is a complex structure (hash) which gets stringified if passed as a URL param which leads to an error on the API side, and data not to be displayed on the page. --- lib/MetaCPAN/Web/Model/API/Release.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MetaCPAN/Web/Model/API/Release.pm b/lib/MetaCPAN/Web/Model/API/Release.pm index 38f1d09588..88645b8a24 100644 --- a/lib/MetaCPAN/Web/Model/API/Release.pm +++ b/lib/MetaCPAN/Web/Model/API/Release.pm @@ -75,7 +75,7 @@ sub reverse_dependencies { $sort ||= { date => 'desc' }; return $self->request( "/reverse_dependencies/dist/$distribution", - undef, { sort => $sort } ); + { sort => $sort } ); } sub interesting_files {