From 195f1ff97cf1885ee817491ace061221a95162e4 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Wed, 20 Mar 2024 13:56:15 +0100 Subject: [PATCH] Cookbook: POST instead of GET in streaming example The example with GET makes no sense, as GET method has no body. Use POST instead. --- lib/Mojolicious/Guides/Cookbook.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Mojolicious/Guides/Cookbook.pod b/lib/Mojolicious/Guides/Cookbook.pod index 8a723cb842..ec2dea6296 100644 --- a/lib/Mojolicious/Guides/Cookbook.pod +++ b/lib/Mojolicious/Guides/Cookbook.pod @@ -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!';