History

Use custom User-Agent string

David Rowe committed 11 years ago

Commit 812fbc51 parent 18e0a9119 files · +57 −13Browse files

Showing the changes to interface/src/Application.cpp (1 of 19 files). Show all

Unified · Split

interface/src/Application.cpp+1−0
@@ -3786,6 +3786,7 @@ void Application::initAvatarAndViewFrustum() { · 3785 unmodified lines
37863786
37873787 void Application::checkVersion() {
37883788 QNetworkRequest latestVersionRequest((QUrl(CHECK_VERSION_URL)));
3789+ latestVersionRequest.setHeader(QNetworkRequest::UserAgentHeader, HIGH_FIDELITY_USER_AGENT);
37893790 latestVersionRequest.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache);
37903791 QNetworkReply* reply = NetworkAccessManager::getInstance().get(latestVersionRequest);
37913792 connect(reply, SIGNAL(finished()), SLOT(parseVersionXml()));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t