{
var shortUrl = new ShortUrl(http);
- // http://htn.to/hoge -> http://example.com/hoge
+ // http://tinami.jp/hoge -> http://example.com/hoge
handler.Enqueue(x =>
{
// HTTPS非対応のドメインは http:// のままリクエストが送信される
Assert.Equal(HttpMethod.Head, x.Method);
- Assert.Equal(new Uri("http://htn.to/hoge"), x.RequestUri);
+ Assert.Equal(new Uri("http://tinami.jp/hoge"), x.RequestUri);
return this.CreateRedirectResponse("http://example.com/hoge");
});
Assert.Equal(new Uri("http://example.com/hoge"),
- await shortUrl.ExpandUrlAsync(new Uri("http://htn.to/hoge")));
+ await shortUrl.ExpandUrlAsync(new Uri("http://tinami.jp/hoge")));
Assert.Equal(0, handler.QueueCount);
}
更新履歴
==== Ver 2.3.2-dev(2019/xx/xx)
+ * CHG: htn.to の短縮URLを展開する際に強制的にHTTPSを使用する
==== Ver 2.3.1(2019/04/22)
* FIX: 2019/5/20に予定されているTwitter APIの仕様変更によりエラーが発生する問題を修正