fixed error in 'expect byte length of response' calculation