Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions RestSharp/Http.Sync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// limitations under the License.
#endregion

#if FRAMEWORK
#if FRAMEWORK || PocketPC
using System;
using System.Net;

Expand Down Expand Up @@ -257,12 +257,12 @@ private HttpWebRequest ConfigureWebRequest(string method, Uri url)
}

webRequest.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip | DecompressionMethods.None;

#if FRAMEWORK
if(ClientCertificates != null)
{
webRequest.ClientCertificates.AddRange(ClientCertificates);
}

#endif
if(UserAgent.HasValue())
{
webRequest.UserAgent = UserAgent;
Expand Down
6 changes: 4 additions & 2 deletions RestSharp/Http.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ protected bool HasFiles
/// X509CertificateCollection to be sent with request
/// </summary>
public X509CertificateCollection ClientCertificates { get; set; }
/// <summary>
#endif
#if FRAMEWORK || PocketPC
/// <summary>
/// Maximum number of automatic redirects to follow if FollowRedirects is true
/// </summary>
public int? MaxRedirects { get; set; }
Expand Down Expand Up @@ -179,7 +181,7 @@ protected bool HasFiles

public bool PreAuthenticate { get; set; }

#if FRAMEWORK
#if FRAMEWORK || PocketPC
/// <summary>
/// Proxy info to be sent with request
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion RestSharp/IHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public interface IHttp
HttpWebRequest AsPostAsync(Action<HttpResponse> action, string httpMethod);
HttpWebRequest AsGetAsync(Action<HttpResponse> action, string httpMethod);

#if FRAMEWORK
#if FRAMEWORK || PocketPC
HttpResponse Delete();
HttpResponse Get();
HttpResponse Head();
Expand Down
2 changes: 1 addition & 1 deletion RestSharp/RestClient.Sync.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if FRAMEWORK
#if FRAMEWORK || PocketPC
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down