aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-03-12 12:41:58 -0500
committerEric Bavier <bavier@member.fsf.org>2015-03-12 15:55:57 -0500
commitacd1f73a26d53692131c3af63731bc8839732156 (patch)
tree4325e8cbbf35d3ae73e6586dda071843973c797d /gnu
parent65b04b4a144564cc57847ab00c7b6da9a3cc1414 (diff)
downloadguix-acd1f73a26d53692131c3af63731bc8839732156.tar
guix-acd1f73a26d53692131c3af63731bc8839732156.tar.gz
gnu: Add Plack-Middleware-FixMissingBodyInRedirect.
* gnu/packages/web.scm (perl-plack-middleware-fixmissingbodyinredirect): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/web.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 255b7f1dd0..420d1dc918 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1097,6 +1097,31 @@ application frameworks. Plack is like Ruby's Rack or Python's Paste for
WSGI.")
(license (package-license perl))))
+(define-public perl-plack-middleware-fixmissingbodyinredirect
+ (package
+ (name "perl-plack-middleware-fixmissingbodyinredirect")
+ (version "0.12")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://cpan/authors/id/S/SW/SWEETKID/"
+ "Plack-Middleware-FixMissingBodyInRedirect-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "14dkrmccq7a5vpymx5dv8032gfcvhsw2i6v5sh3c4ym5ymlx08kc"))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-html-parser" ,perl-html-parser) ;for HTML::Entities
+ ("perl-http-message" ,perl-http-message)
+ ("perl-plack" ,perl-plack))) ;for Plack::Test
+ (home-page
+ "http://search.cpan.org/dist/Plack-Middleware-FixMissingBodyInRedirect")
+ (synopsis "Plack::Middleware which sets body for redirect response")
+ (description "This module sets the body in redirect response, if it's not
+already set.")
+ (license (package-license perl))))
+
(define-public perl-test-tcp
(package
(name "perl-test-tcp")