Add the clear logic for last result error
authorMyeongSeong Seo <ms49.seo@samsung.com>
Sat, 6 Apr 2013 08:52:31 +0000 (17:52 +0900)
committerMyeongSeong Seo <ms49.seo@samsung.com>
Sat, 6 Apr 2013 08:52:31 +0000 (17:52 +0900)
Change-Id: Ifc733fb637241445e49c559f6ad6f942fcef8519
Signed-off-by: MyeongSeong Seo <ms49.seo@samsung.com>
src/http/FNetHttp_HttpCommon.cpp

index b790eff..fa6573f 100644 (file)
@@ -582,6 +582,8 @@ _HttpUtility::CompareHost(const Tizen::Base::String & host0, const Tizen::Base::
        Uri hostUri0;
        Uri hostUri1;
 
+       SysLog(NID_NET_HTTP, "host0 : %ls, host1 : %ls.", host0.GetPointer(), host1.GetPointer());
+
        r = hostUri0.SetUri(host0);
        r = TransExceptionsExclusive(r, E_INVALID_ARG, E_OUT_OF_MEMORY);
        SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, false, r,
@@ -622,6 +624,7 @@ _HttpUtility::CompareHost(const Tizen::Base::String & host0, const Tizen::Base::
                return false;
        }
 
+       ClearLastResult();
        return true;
 }