Commit a9c6608
guard method with defined to avoid uninitialized warning on Perl < 5.12
length(undef) warns "Use of uninitialized value in length" under
use warnings on Perl < 5.12, which is reachable via as_string/dump on
a request with no method (e.g. HTTP::Request->new). This module
supports back to 5.008001, so guard with defined first, matching the
uri handling on the same line.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2e1c50d commit a9c6608
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
0 commit comments