Skip to content

Commit

Permalink
Cookbook: POST instead of GET in streaming example
Browse files Browse the repository at this point in the history
The example with GET makes no sense, as GET method has no body.
Use POST instead.
  • Loading branch information
Yenya committed Mar 20, 2024
1 parent 0da4a70 commit 195f1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1350,7 +1350,7 @@ Sending a streaming request is almost just as easy.

# Build a normal transaction
my $ua = Mojo::UserAgent->new;
my $tx = $ua->build_tx(GET => 'http://example.com');
my $tx = $ua->build_tx(POST => 'http://example.com');

# Prepare body
my $body = 'Hello World!';
Expand Down

0 comments on commit 195f1ff

Please sign in to comment.