mirror of
https://github.com/cwinfo/envayasms.git
synced 2024-12-04 20:45:32 +00:00
set http user-agent header
This commit is contained in:
parent
2889bf9b4b
commit
f430ddbe29
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.envaya.sms"
|
package="org.envaya.sms"
|
||||||
android:versionCode="14"
|
android:versionCode="15"
|
||||||
android:versionName="2.0.1">
|
android:versionName="2.0.2">
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="4" />
|
<uses-sdk android:minSdkVersion="4" />
|
||||||
|
|
||||||
|
@ -155,6 +155,7 @@ public class HttpTask extends AsyncTask<String, Void, HttpResponse> {
|
|||||||
String signature = getSignature();
|
String signature = getSignature();
|
||||||
|
|
||||||
post.setHeader("X-Request-Signature", signature);
|
post.setHeader("X-Request-Signature", signature);
|
||||||
|
post.setHeader("User-Agent", "EnvayaSMS/" + app.getPackageInfo().versionName);
|
||||||
|
|
||||||
HttpResponse response = client.execute(post);
|
HttpResponse response = client.execute(post);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user