svn commit: r470097 - head/www/p5-Plack-Middleware-NoMultipleSlashes
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed May 16 00:01:31 UTC 2018
Author: sunpoet
Date: Wed May 16 00:01:27 2018
New Revision: 470097
URL: https://svnweb.freebsd.org/changeset/ports/470097
Log:
Fix LICENSE
- Update COMMENT
- Add NO_ARCH
- Update pkg-descr
- Take maintainership
Modified:
head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile
head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr (contents, props changed)
Modified: head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile
==============================================================================
--- head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile Wed May 16 00:01:22 2018 (r470096)
+++ head/www/p5-Plack-Middleware-NoMultipleSlashes/Makefile Wed May 16 00:01:27 2018 (r470097)
@@ -6,15 +6,17 @@ CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
-MAINTAINER= ports at FreeBSD.org
-COMMENT= Automatically remove multiple slashes in your paths
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Remove multiple slashes in your paths automatically
-LICENSE= GPLv1
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= p5-Plack>=0:www/p5-Plack
-RUN_DEPENDS= p5-Plack>=0:www/p5-Plack
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+NO_ARCH= yes
USES= perl5
USE_PERL5= configure
Modified: head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr
==============================================================================
--- head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr Wed May 16 00:01:22 2018 (r470096)
+++ head/www/p5-Plack-Middleware-NoMultipleSlashes/pkg-descr Wed May 16 00:01:27 2018 (r470097)
@@ -1,5 +1,17 @@
-Plack Middleware. By enabling this middleware, all multiple slashes in your
-requests will automatically be cut. //hello///world becomes /hello/world.
-Simple as that.
+Plack::Middleware::NoMultipleSlashes removes all multiple slashes from your
+PATH_INFO.
+
+Multiple slashes in requests are a common problem, which many share. Apparently,
+the RFC states that you should be able to expect different results from
+http://server/ and http://server// (notice the second slash), so if the
+frameworks wish to maintain RFC compatibility, they cannot remove those extra
+slashes for you.
+
+While you can handle this issue in a reverse proxy, in a rewrite module or in
+your code, I find it more comfortable to have Plack take care of it in the thin
+layer called Middlewares.
+
+By enabling this middleware, all multiple slashes in your requests will
+automatically be cut. //hello///world becomes /hello/world. Simple as that.
WWW: http://search.cpan.org/dist/Plack-Middleware-NoMultipleSlashes/
More information about the svn-ports-head
mailing list