From 7519c53fa85b3a31e2162397083f1645f29b1dc1 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Sat, 29 Jun 2019 18:16:10 +0900 Subject: [PATCH] =?utf8?q?htn.to=20=E3=81=AE=E5=B1=95=E9=96=8B=E6=99=82?= =?utf8?q?=E3=81=ABHTTPS=E3=82=92=E5=BC=B7=E5=88=B6=E7=9A=84=E3=81=AB?= =?utf8?q?=E4=BD=BF=E7=94=A8=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit https://bookmark.hatenastaff.com/entry/2019/05/28/141208 --- OpenTween.Tests/ShortUrlTest.cs | 6 +++--- OpenTween/Resources/ChangeLog.txt | 1 + OpenTween/ShortUrl.cs | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenTween.Tests/ShortUrlTest.cs b/OpenTween.Tests/ShortUrlTest.cs index 1068437a..853adaa7 100644 --- a/OpenTween.Tests/ShortUrlTest.cs +++ b/OpenTween.Tests/ShortUrlTest.cs @@ -214,18 +214,18 @@ namespace OpenTween { 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); } diff --git a/OpenTween/Resources/ChangeLog.txt b/OpenTween/Resources/ChangeLog.txt index 998eb214..831422d1 100644 --- a/OpenTween/Resources/ChangeLog.txt +++ b/OpenTween/Resources/ChangeLog.txt @@ -1,6 +1,7 @@ 更新履歴 ==== 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の仕様変更によりエラーが発生する問題を修正 diff --git a/OpenTween/ShortUrl.cs b/OpenTween/ShortUrl.cs index b6bd1cc1..c9ea0499 100644 --- a/OpenTween/ShortUrl.cs +++ b/OpenTween/ShortUrl.cs @@ -125,7 +125,6 @@ namespace OpenTween "budurl.com", "ff.im", "ht.ly", - "htn.to", "moi.st", "ow.ly", "tinami.jp", -- 2.11.0