Changeset 32498 for main

Show
Ignore:
Timestamp:
03.10.2018 22:28:51 (8 months ago)
Author:
litvinovg
Message:

Check for response containing 200 as Tomcat 8 does not return OK after response code

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/servercontrol.pm

    r32432 r32498  
    195195        return 0; 
    196196    } 
    197     if($response_code && $response_code eq "200 OK") { 
     197    if($response_code && (index($response_code, "200") != -1)) { 
    198198        $self->print_msg("*** Command $library_url$command\n", 3); 
    199199        $self->print_msg("*** HTTP Response Status: $response_code - Complete.", 3);