소스 검색

set expect 100 continue for post requests

Luke Pulverenti 11 년 전
부모
커밋
32b88ce342
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs

+ 3 - 0
MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs

@@ -64,6 +64,9 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
             _logger = logger;
             _fileSystem = fileSystem;
             _appPaths = appPaths;
+
+            // http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c
+            ServicePointManager.Expect100Continue = false;
         }
 
         /// <summary>