Skip Menu |

This queue is for tickets about the HTTP-Request-Generator CPAN distribution.

Report information
The Basics
Id: 133482
Status: resolved
Priority: 0/
Queue: HTTP-Request-Generator

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.10



Subject: `wrap` isn't documented well
The example shows: wrap => sub { my( $req ) = @_; # Fix up some values $req->{headers}->{'Content-Length'} = 666; }, But there should probably be a "return $req" at the end. Otherwise it seems to keep generating "666".
Subject: Re: [rt.cpan.org #133482] `wrap` isn't documented well
Date: Thu, 8 Oct 2020 08:07:00 +0200
To: bug-HTTP-Request-Generator [...] rt.cpan.org
From: Max Maischein <corion [...] corion.net>
Hello Toby, Show quoted text
> The example shows: > > wrap => sub { > my( $req ) = @_; > # Fix up some values > $req->{headers}->{'Content-Length'} = 666; > }, > > But there should probably be a "return $req" at the end. Otherwise it seems to keep generating "666". >
Indeed! Thank you very much for reporting this bug! I will release the corrected documentation soon! -max
Fixed in 0.10, closing