Bug fix: when the input GET query is bigger than buffer.size() can't get protocol info