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

Commit cde0e33

Browse files
committed
Don't force Method Override for non-BrowserHttpWebRequest
1 parent 89158ba commit cde0e33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ServiceStack.Text/PclExport.Sl5.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public override void Config(HttpWebRequest req,
6363

6464
//Methods others than GET and POST are only supported by Client request creator, see
6565
//http://msdn.microsoft.com/en-us/library/cc838250(v=vs.95).aspx
66+
if (req.GetType().Name != "BrowserHttpWebRequest") return;
6667
if (req.Method != "GET" && req.Method != "POST")
6768
{
6869
req.Headers[HttpHeaders.XHttpMethodOverride] = req.Method;

0 commit comments

Comments
 (0)