5
0
mirror of https://github.com/cwinfo/envayasms.git synced 2024-11-09 10:20:25 +00:00

set http user-agent header

This commit is contained in:
Jesse Young 2011-11-13 15:11:17 -08:00
parent 2889bf9b4b
commit f430ddbe29
2 changed files with 3 additions and 2 deletions

View File

@ -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" />

View File

@ -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);