Skip to content

Commit a284c3b

Browse files
authored
Merge pull request #490 from drdrew42/bugfix-AskSage
AskSage should not match just any "100" in response header
2 parents 26d1f93 + 30fe56c commit a284c3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/WeBWorK/PG/IO.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ sub query_sage_server {
326326
my $header_block = shift(@lines);
327327
warn "checking for header: $header_block" if $debug;
328328
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
329+
next if ($header_block =~ m!HTTP[ 12/.]+100!); # skip continue line
330+
if ($header_block=~ m!HTTP[ 12/.]+200!) { # 200 return is ok
331331
$header_ok=1;
332332
last;
333333
}

0 commit comments

Comments
 (0)