File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 8989
9090say STDERR ' running...' ;
9191
92- say STDERR ' updating Tranco list...' ;
93- Data::Tranco-> update_db;
94-
9592say STDERR ' mirroring PSL...' ;
9693$PSL = Domain::PublicSuffix-> new({ data_file => mirror_file(PSL_URL) });
9794
@@ -190,7 +187,7 @@ sub check_tld {
190187
191188 my $ua = LWP::UserAgent-> new(
192189 user_agent => ' Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0' ,
193- timeout => 1 ,
190+ timeout => 3 ,
194191 ssl_opts => {
195192 # for the purposes of this survey, we don't care about
196193 # whether the server has a valid TLS certificate
@@ -204,7 +201,9 @@ sub check_tld {
204201 say STDERR sprintf (' checking %s...' , $url );
205202 my $result = $ua -> request(GET($url , connection => ' close' ));
206203
207- if (200 == $result -> code && $result -> header(' content-type' ) =~ / ^application\/ (rdap\+ ?)json/i ) {
204+ say STDERR $result -> status_line;
205+
206+ if (200 == $result -> code && $result -> header(' content-type' ) =~ / ^application\/ (rdap\+ )?json/i ) {
208207 say STDERR sprintf (' %s returned an RDAP response!' , $url );
209208 say STDOUT $tld ;
210209
You can’t perform that action at this time.
0 commit comments