We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26d1f93 + 30fe56c commit a284c3bCopy full SHA for a284c3b
lib/WeBWorK/PG/IO.pm
@@ -326,8 +326,8 @@ sub query_sage_server {
326
my $header_block = shift(@lines);
327
warn "checking for header: $header_block" if $debug;
328
next unless $header_block=~/\S/; #skip empty lines;
329
- next if $header_block=~/HTTP/ and $header_block=~/100/; # skip continue line
330
- if ($header_block=~/200/) { # 200 return is ok
+ next if ($header_block =~ m!HTTP[ 12/.]+100!); # skip continue line
+ if ($header_block=~ m!HTTP[ 12/.]+200!) { # 200 return is ok
331
$header_ok=1;
332
last;
333
}
0 commit comments