mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-03-01 05:48:23 +03:00
Update useragent
This commit is contained in:
parent
891f19f37c
commit
2528fba9f0
3 changed files with 3 additions and 3 deletions
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
@ -24,7 +24,7 @@
|
|||
</value>
|
||||
</option>
|
||||
</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" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
|
|
@ -6,7 +6,7 @@ android {
|
|||
applicationId "us.spotco.malwarescanner"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 26
|
||||
versionCode 1
|
||||
versionCode 2
|
||||
versionName "1.0" }
|
||||
buildTypes {
|
||||
release {
|
||||
|
|
|
@ -109,7 +109,7 @@ public class Database {
|
|||
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
||||
connection.setConnectTimeout(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()) {
|
||||
connection.setIfModifiedSince(out.lastModified());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue