change user-agent string

This commit is contained in:
sk 2023-05-22 18:07:18 +02:00
parent 66cdd63496
commit f6f08d176c
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class MastodonAPIController{
Request.Builder builder=new Request.Builder() Request.Builder builder=new Request.Builder()
.url(req.getURL().toString()) .url(req.getURL().toString())
.method(req.getMethod(), req.getRequestBody()) .method(req.getMethod(), req.getRequestBody())
.header("User-Agent", "MastodonAndroid/"+BuildConfig.VERSION_NAME); .header("User-Agent", "MegalodonAndroid/"+BuildConfig.VERSION_NAME);
String token=null; String token=null;
if(session!=null) if(session!=null)