Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
api_tokenを送信しないように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
about518 committed Feb 17, 2014
1 parent cdc4c2c commit 6a1fe8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions KanColleDbPost/Form1.cs
Expand Up @@ -12,6 +12,7 @@
using System.Web;
using System.Threading.Tasks;
using Fiddler;
using System.Text.RegularExpressions;

namespace KanColleDbPost
{
Expand Down Expand Up @@ -158,9 +159,10 @@ void FiddlerApplication_AfterSessionComplete(Session oSession)
private string PostServer(Session oSession)
{
string token = textBox2.Text; // TODO: ユーザー毎のトークンを設定
string agent = "********************"; // TODO: アプリ毎のトークンを設定
string agent = ""; // TODO: アプリ毎のトークンを設定
string url = oSession.fullUrl;
string requestBody = oSession.GetRequestBodyAsString();
string requestBody = HttpUtility.HtmlDecode(oSession.GetRequestBodyAsString());
requestBody = Regex.Replace(requestBody, @"&api(_|%5F)token=[0-9a-f]+", ""); // api_tokenを送信しないように削除
string responseBody = oSession.GetResponseBodyAsString();
responseBody.Replace("svdata=", "");

Expand Down
4 changes: 2 additions & 2 deletions KanColleDbPost/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.2.0.1")]
[assembly: AssemblyFileVersion("1.2.0.1")]

0 comments on commit 6a1fe8e

Please sign in to comment.