Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 9125411

Browse files
committed
Don't set AllowAutoRedirect which fails in both BrowserHttp + ClientHttp clients
1 parent cde0e33 commit 9125411

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ServiceStack.Text/PclExport.Sl5.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ public override void Config(HttpWebRequest req,
5858
string userAgent = null,
5959
bool? preAuthenticate = null)
6060
{
61-
if (allowAutoRedirect.HasValue) req.AllowAutoRedirect = allowAutoRedirect.Value;
62-
// if (userAgent != null) req.UserAgent = userAgent; //throws NotImplementedException
61+
//throws NotImplementedException in both BrowserHttp + ClientHttp
62+
//if (allowAutoRedirect.HasValue) req.AllowAutoRedirect = allowAutoRedirect.Value;
63+
//if (userAgent != null) req.UserAgent = userAgent;
6364

6465
//Methods others than GET and POST are only supported by Client request creator, see
6566
//http://msdn.microsoft.com/en-us/library/cc838250(v=vs.95).aspx

0 commit comments

Comments
 (0)