Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added important note to streaming upload recipe
  • Loading branch information
kraih committed Feb 1, 2012
1 parent 58af191 commit c8e3e4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -532,7 +532,7 @@ which can be combined to solve some of hardest problems in web development.
# Upload form
get '/' => 'index';

# Streaming upload
# Streaming upload (will be invoked twice, due to early "request" event)
post '/upload' => sub {
my $self = shift;

Expand Down
2 changes: 1 addition & 1 deletion t/mojolicious/upload_stream_lite_app.t
Expand Up @@ -15,7 +15,7 @@ use Mojolicious::Lite;
use Scalar::Util 'weaken';
use Test::Mojo;

# Trigger early "request" event for multipart requests under "/upload"
# Emit "request" event early for multipart requests under "/upload"
hook after_build_tx => sub {
my $tx = shift;
weaken $tx;
Expand Down

0 comments on commit c8e3e4d

Please sign in to comment.