4
0
mirror of https://github.com/cwinfo/envayasms.git synced 2025-07-03 05:37:44 +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

@ -155,6 +155,7 @@ public class HttpTask extends AsyncTask<String, Void, HttpResponse> {
String signature = getSignature();
post.setHeader("X-Request-Signature", signature);
post.setHeader("User-Agent", "EnvayaSMS/" + app.getPackageInfo().versionName);
HttpResponse response = client.execute(post);