Response doesn't end when "msg=" is found inside the message