OSDN Git Service

BASIC認証でアカウント認証確認ができないバグ修正
authorkiri_feather <kiri_feather@users.sourceforge.jp>
Mon, 8 Mar 2010 14:47:33 +0000 (14:47 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:11:12 +0000 (23:11 +0900)
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@123 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/Connection/HttpConnectionBasic.vb

index 495ecac..e68bf11 100644 (file)
@@ -40,7 +40,7 @@ Public Class HttpConnectionBasic
             ByVal headerInfo As Dictionary(Of String, String)) As HttpStatusCode Implements IHttpConnection.GetContent
 
         '認証済かチェック
-        If String.IsNullOrEmpty(_userName) OrElse String.IsNullOrEmpty(_password) Then Throw New Exception("Sequence error. (account is blank.)")
+        If String.IsNullOrEmpty(Me.credential) Then Throw New Exception("Sequence error. (account is blank.)")
 
         Dim webReq As HttpWebRequest = CreateRequest(method, _
                                                     requestUri, _