commit 2ddf66a71d2bd58c9d764e7e7489d86852729be3
Author: Scott Kostyshak <[email protected]>
Date:   Thu Jan 23 11:14:31 2014 -0500

    Ctests: fix "read failed" errors for the URL tests
    
    This patch changes the user agent and results in the openoffice.org
    tests correctly passing. Before, they would give the following error:
    
      Failed, caught error: Status read failed: Connection reset by peer
    
    All the other tests work as before.
    Kornel and I are not sure why this change works.

diff --git a/development/checkurls/CheckURL.pm 
b/development/checkurls/CheckURL.pm
index 339147a..537e2c4 100755
--- a/development/checkurls/CheckURL.pm
+++ b/development/checkurls/CheckURL.pm
@@ -55,7 +55,7 @@ sub check_http_url($$$$)
     }
   }
   #print " Trying to use GET  => \"$getp\"";
-  $s->write_request(GET => $getp, 'User-Agent' => "Mozilla/5.0");
+  $s->write_request(GET => $getp, 'User-Agent' => "Mozilla/6.0");
   my($code, $mess, %h) = $s->read_response_headers;
 
   # Try to read something

Reply via email to