Update useragent

This commit is contained in:
Tad 2017-12-14 16:39:23 -05:00
parent 891f19f37c
commit 2528fba9f0
3 changed files with 3 additions and 3 deletions

2
.idea/misc.xml generated
View file

@ -24,7 +24,7 @@
</value> </value>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View file

@ -6,7 +6,7 @@ android {
applicationId "us.spotco.malwarescanner" applicationId "us.spotco.malwarescanner"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 26 targetSdkVersion 26
versionCode 1 versionCode 2
versionName "1.0" } versionName "1.0" }
buildTypes { buildTypes {
release { release {

View file

@ -109,7 +109,7 @@ public class Database {
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection(); HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
connection.setConnectTimeout(45000); connection.setConnectTimeout(45000);
connection.setReadTimeout(45000); connection.setReadTimeout(45000);
connection.addRequestProperty("User-Agent", "Veritas Database Updater"); connection.addRequestProperty("User-Agent", "Theia: Open Source Android Malware Scanner - Database Updater");
if (out.exists()) { if (out.exists()) {
connection.setIfModifiedSince(out.lastModified()); connection.setIfModifiedSince(out.lastModified());
} }