Commit 2bdd26fd authored by nanahira's avatar nanahira

missing header

parent ceb54d77
...@@ -87,6 +87,7 @@ public class MyCardHelper : MonoBehaviour { ...@@ -87,6 +87,7 @@ public class MyCardHelper : MonoBehaviour {
string auth_str = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(username + ":" + userid)); string auth_str = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(username + ":" + userid));
Dictionary<String, String> header_list = new Dictionary<String, String>(); Dictionary<String, String> header_list = new Dictionary<String, String>();
header_list.Add("Authorization", auth_str); header_list.Add("Authorization", auth_str);
header_list.Add("Content-Type", "application/x-www-form-urlencoded");
byte meta = new byte[1]; byte meta = new byte[1];
WWW www = new WWW("https://api.mycard.moe/ygopro/match?locale=zh-CN&arena=" + match_type, meta, header_list); WWW www = new WWW("https://api.mycard.moe/ygopro/match?locale=zh-CN&arena=" + match_type, meta, header_list);
while (!www.isDone) { while (!www.isDone) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment