summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2011-02-03 09:54:39 +0000
committerdeva <deva>2011-02-03 09:54:39 +0000
commite137415d0e0325d143b69a9917d8ebba411b3c12 (patch)
tree821d7fe903c5aeca068528f42f72bd2434d48889
parentc923c71eeb61fc005ce8e7977d3f7e3fb29c2700 (diff)
Set User-Agent header to 'Pracro Client v'+VERSION.
-rw-r--r--client/netcom.cc2
1 files changed, 2 insertions, 0 deletions
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 {