From f430ddbe29bbca7085fb7baa8b28b9a77641f159 Mon Sep 17 00:00:00 2001 From: Jesse Young Date: Sun, 13 Nov 2011 15:11:17 -0800 Subject: [PATCH] set http user-agent header --- AndroidManifest.xml | 4 ++-- src/org/envaya/sms/task/HttpTask.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 58b0125..8a3a63b 100755 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="15" + android:versionName="2.0.2"> diff --git a/src/org/envaya/sms/task/HttpTask.java b/src/org/envaya/sms/task/HttpTask.java index 5d99cb9..a8c2099 100755 --- a/src/org/envaya/sms/task/HttpTask.java +++ b/src/org/envaya/sms/task/HttpTask.java @@ -155,6 +155,7 @@ public class HttpTask extends AsyncTask { String signature = getSignature(); post.setHeader("X-Request-Signature", signature); + post.setHeader("User-Agent", "EnvayaSMS/" + app.getPackageInfo().versionName); HttpResponse response = client.execute(post);