Skip to content

Commit

Permalink
Merge pull request #490 from drdrew42/bugfix-AskSage
Browse files Browse the repository at this point in the history
AskSage should not match just any "100" in response header
  • Loading branch information
drgrice1 authored Sep 6, 2020
2 parents 26d1f93 + 30fe56c commit a284c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/WeBWorK/PG/IO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ sub query_sage_server {
my $header_block = shift(@lines);
warn "checking for header: $header_block" if $debug;
next unless $header_block=~/\S/; #skip empty lines;
next if $header_block=~/HTTP/ and $header_block=~/100/; # skip continue line
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
$header_ok=1;
last;
}
Expand Down

0 comments on commit a284c3b

Please sign in to comment.