Skip to content

Commit 29ac265

Browse files
karenetheridgeoalders
authored andcommitted
HTTP::Request::Common does not put headers in an arrayref, unlike HTTP::Request
1 parent 45d4db1 commit 29ac265

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Revision history for HTTP-Message
22

33
{{$NEXT}}
4+
- fixed examples in HTTP::Request::Common synopsis
45

56
6.35 2021-11-11 22:10:31Z
67
- Clarify documentation for decoded_content (GH#166) (Eric Wastl)

lib/HTTP/Request/Common.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ __END__
313313
use HTTP::Request::Common;
314314
$ua = LWP::UserAgent->new;
315315
$ua->request(GET 'http://www.sn.no/');
316-
$ua->request(POST 'http://somewhere/foo', [foo => bar, bar => foo]);
317-
$ua->request(PATCH 'http://somewhere/foo', [foo => bar, bar => foo]);
318-
$ua->request(PUT 'http://somewhere/foo', [foo => bar, bar => foo]);
319-
$ua->request(OPTIONS 'http://somewhere/foo', [foo => bar, bar => foo]);
316+
$ua->request(POST 'http://somewhere/foo', foo => bar, bar => foo);
317+
$ua->request(PATCH 'http://somewhere/foo', foo => bar, bar => foo);
318+
$ua->request(PUT 'http://somewhere/foo', foo => bar, bar => foo);
319+
$ua->request(OPTIONS 'http://somewhere/foo', foo => bar, bar => foo);
320320
321321
=head1 DESCRIPTION
322322

0 commit comments

Comments
 (0)