From e137415d0e0325d143b69a9917d8ebba411b3c12 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 3 Feb 2011 09:54:39 +0000 Subject: Set User-Agent header to 'Pracro Client v'+VERSION. --- client/netcom.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client') diff --git a/client/netcom.cc b/client/netcom.cc index d2d3cdd..2798a59 100644 --- a/client/netcom.cc +++ b/client/netcom.cc @@ -91,6 +91,8 @@ QDomDocument NetCom::makeTransfer(QDomDocument &doc, bool lockgui, LOG(netcom, "SESSION ID: %s\n", sessionid.toStdString().c_str()); + request.setRawHeader("User-Agent", "Pracro Client v"VERSION); + if(sessionid != "") { request.setRawHeader("SessionID", sessionid.toStdString().c_str()); } else { -- cgit v1.2.3