fix incorrect regex used for testing the response line (amends #80)