OSDN Git Service

htn.to の展開時にHTTPSを強制的に使用する
authorKimura Youichi <kim.upsilon@bucyou.net>
Sat, 29 Jun 2019 09:16:10 +0000 (18:16 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 29 Jun 2019 10:39:57 +0000 (19:39 +0900)
https://bookmark.hatenastaff.com/entry/2019/05/28/141208

OpenTween.Tests/ShortUrlTest.cs
OpenTween/Resources/ChangeLog.txt
OpenTween/ShortUrl.cs

index 1068437..853adaa 100644 (file)
@@ -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);
             }
index 998eb21..831422d 100644 (file)
@@ -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の仕様変更によりエラーが発生する問題を修正
index b6bd1cc..c9ea049 100644 (file)
@@ -125,7 +125,6 @@ namespace OpenTween
             "budurl.com",
             "ff.im",
             "ht.ly",
-            "htn.to",
             "moi.st",
             "ow.ly",
             "tinami.jp",