diff options
author | deva <deva> | 2011-02-03 09:54:39 +0000 |
---|---|---|
committer | deva <deva> | 2011-02-03 09:54:39 +0000 |
commit | e137415d0e0325d143b69a9917d8ebba411b3c12 (patch) | |
tree | 821d7fe903c5aeca068528f42f72bd2434d48889 /client | |
parent | c923c71eeb61fc005ce8e7977d3f7e3fb29c2700 (diff) |
Set User-Agent header to 'Pracro Client v'+VERSION.
Diffstat (limited to 'client')
-rw-r--r-- | client/netcom.cc | 2 |
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 { |