diff --git a/.gitignore b/.gitignore index ca0438c..f485a71 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ t/CAN_TALK_TO_OURSELF t/live/ENABLED .vscode xx* +MYMETA.json +MYMETA.yml diff --git a/Changes b/Changes index a9ed535..efb1c1a 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Change history for HTML-Form {{$NEXT}} + - Fix form.t compatibility with HTTP::Message 7.01+ (GH#57) (Copilot and + Gianni Ceccarelli) 6.12 2024-10-18 16:19:06Z - Fix CRLF normalization with HTTP::Message 7.00 (GH#53) (Graham Knop) diff --git a/dist.ini b/dist.ini index 80849eb..52bc4e7 100644 --- a/dist.ini +++ b/dist.ini @@ -36,7 +36,7 @@ user = libwww-perl [Prereqs] Encode = 2 -HTTP::Request = 6 +HTTP::Request = 7.01 HTTP::Request::Common = 6.03 perl = 5.008001 Test::More = 0.96 diff --git a/t/form.t b/t/form.t index c3c146f..496274b 100644 --- a/t/form.t +++ b/t/form.t @@ -83,13 +83,14 @@ EOT #print $f->dump; #print $f->click->as_string; -is( $f->click->as_string, <<'EOT'); +chomp(my $expected_advanced = <<'EOT'); POST http://localhost/ Content-Length: 86 Content-Type: application/x-www-form-urlencoded i.x=1&i.y=1&c=on&r=b&t=&p=&tel=&date=&h=xyzzy&f=&x=&a=%0D%0Aabc%0D%0A+++&s=bar&m=a&m=b EOT +is( $f->click->as_string, $expected_advanced); is( @warn, 1 ); like( $warn[0], qr/^Unknown input type 'xyzzy'/ ); @@ -463,22 +464,24 @@ EOT ok( $f->find_input("randomkey") ); is( $f->find_input("randomkey")->challenge, "1234567890" ); is( $f->find_input("randomkey")->keytype, "rsa" ); -is( $f->click->as_string, <click->as_string, $expected_keygen); $f->value( randomkey => "foo" ); -is( $f->click->as_string, <click->as_string, $expected_keygen_foo); $f = HTML::Form->parse( < @@ -602,13 +605,14 @@ $f = HTML::Form->parse( < "http://localhost/" ); EOT -is( $f->click->as_string, <click->as_string, $expected_button_go); $f = HTML::Form->parse( < "http://localhost/" );
@@ -617,13 +621,14 @@ $f = HTML::Form->parse( < "http://localhost/" ); EOT -is( $f->click->as_string, <click->as_string, $expected_button_empty); # select with a name followed by select without a name GH#2 $f = HTML::Form->parse( <