2009-09-10 09:26:50 PDT
Yes,I've tried,but without successfull.
I've tried to do this:
add std::string m_agent; into connection.h
add case 3:
{
std::string v(reinterpret_cast<const char*>(b), a - b);
if (boost::istarts_with(v, "user-agent:"))
m_agent = boost::trim_copy(v.substr(11));
}
m_state += *a == '\n' ? 2 : 1;
break;
and
ti.m_agent = m_agent;
into connection.cpp in the correct position.
But it doesn't work,when the tracker update the useragent table into the db,it create a blank space and I don't know why.
Does my method is correct or is there another one?