Skip to content

Commit 196c251

Browse files
committed
Merge pull request #534 from hartaa/master
Added conditional compilation directive around setting the HttpWebReques...
2 parents 0ff5688 + fcbdb54 commit 196c251

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RestSharp/Http.Async.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,10 @@ private HttpWebRequest ConfigureAsyncWebRequest(string method, Uri url)
379379
#if !PocketPC
380380
webRequest.UseDefaultCredentials = UseDefaultCredentials;
381381
#endif
382-
webRequest.PreAuthenticate = PreAuthenticate;
383382

383+
#if !WINDOWS_PHONE && !SILVERLIGHT
384+
webRequest.PreAuthenticate = PreAuthenticate;
385+
#endif
384386
AppendHeaders(webRequest);
385387
AppendCookies(webRequest);
386388

0 commit comments

Comments
 (0)