Skip to content

Commit

Permalink
Merge pull request #402 from dsteinbrunner/master
Browse files Browse the repository at this point in the history
typo fixes
  • Loading branch information
miyagawa committed May 12, 2013
2 parents 89f7101 + f285328 commit eac48d5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/Plack/Handler/CGI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ This is a handler module to run any PSGI application as a CGI script.
my $env = Plack::Handler::CGI->setup_env(\%override_env);
Sets up the PSGI environment hash for a CGI request from C<< %ENV >>> and returns it.
You can can provide a hashref of key/value pairs to override the defaults if you would like.
You can provide a hashref of key/value pairs to override the defaults if you would like.
=head1 SEE ALSO
Expand Down
4 changes: 2 additions & 2 deletions lib/Plack/Handler/FCGI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ To host the app in the root path, you're recommended to use lighttpd
))
If you use lighttpd older than 1.4.22 where you don't have
C<fix-root-scriptname>, mouting apps under the root causes wrong
C<SCRIPT_NAME> and C<PATH_INFO> set. Also, mouting under the empty
C<fix-root-scriptname>, mounting apps under the root causes wrong
C<SCRIPT_NAME> and C<PATH_INFO> set. Also, mounting under the empty
root (C<"">) or a path that has a trailing slash would still cause
weird values set even with C<fix-root-scriptname>. In such cases you
can use L<Plack::Middleware::LighttpdScriptNameFix> to fix it.
Expand Down
2 changes: 1 addition & 1 deletion lib/Plack/Middleware.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ and then implement the callback C<call> method (or the C<to_app> method
that would return the PSGI code reference) to do the actual work. You
can use C<< $self->app >> to call the original (wrapped) application.
Your middleware object is created at the the PSGI application compile time
Your middleware object is created at the PSGI application compile time
and is persistent during the web server life cycle (unless it is a
non-persistent environment such as CGI), so you should never set or
cache per-request data like C<$env> in your middleware object. See
Expand Down
2 changes: 1 addition & 1 deletion lib/Plack/Middleware/AccessLog/Timed.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ C<%D>.
This wraps the response body output stream to capture the time taken
for the PSGI server to read the whole response body.
This would mean, if the middlware is in use, it will prevent some
This would mean, if the middleware is in use, it will prevent some
server-side optimizations like sendfile(2) from working, as well as
middleware like L<Plack::Middleware::ContentLength> can't guess the
body size out of the file handle.
Expand Down
2 changes: 1 addition & 1 deletion lib/Plack/Middleware/Auth/Basic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sub call {
my $auth = $env->{HTTP_AUTHORIZATION}
or return $self->unauthorized;

# note the 'i' on the regex, as, accoring to RFC2617 this is a
# note the 'i' on the regex, as, according to RFC2617 this is a
# "case-insensitive token to identify the authentication scheme"
if ($auth =~ /^Basic (.*)$/i) {
my($user, $pass) = split /:/, (MIME::Base64::decode($1) || ":"), 2;
Expand Down
4 changes: 2 additions & 2 deletions lib/Plack/Middleware/StackTrace.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ sub utf8_safe {

# NOTE: I know messing with utf8:: in the code is WRONG, but
# because we're running someone else's code that we can't
# guarnatee which encoding an exception is encoded, there's no
# guarantee which encoding an exception is encoded, there's no
# better way than doing this. The latest Devel::StackTrace::AsHTML
# (0.08 or later) encodes high-bit chars as HTML entities, so this
# path won't be executed.
Expand Down Expand Up @@ -113,7 +113,7 @@ This middleware catches exceptions (run-time errors) happening in your
application and displays nice stack trace screen. The stack trace is
also stored in the environment as a plaintext and HTML under the key
C<plack.stacktrace.text> and C<plack.stacktrace.html> respectively, so
that middleware futher up the stack can reference it.
that middleware further up the stack can reference it.
This middleware is enabled by default when you run L<plackup> in the
default I<development> mode.
Expand Down
2 changes: 1 addition & 1 deletion lib/Plack/Middleware/Static.pm
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ C<root>.
The configuration above serves C</static/foo.png> from
C<static-files/foo.png>, not C<static-files/static/foo.png>. The callback
specified in the C<path> option matches against C<$_> munges this value using
C<s///>. The subsitution operator returns the number of matches it made, so it
C<s///>. The substitution operator returns the number of matches it made, so it
will return true when the path matches C<^/static>.
For more complex static handling in the C<path> callback, in addition
Expand Down

0 comments on commit eac48d5

Please sign in to comment.