List URL method

pull/214/head
M66B 10 months ago
parent 56c7e51d72
commit 7d6b4706d1

@ -227,7 +227,10 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
setAction(getAction(type), notes);
} else if (type == EntityRule.TYPE_URL) {
String url = jaction.getString("url");
setAction(getAction(type), url);
String method = jaction.optString("method");
if (TextUtils.isEmpty(method))
method = "GET";
setAction(getAction(type), method + " " + url);
} else
setAction(getAction(type), null);

Loading…
Cancel
Save