diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-14 07:27:17 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-15 12:50:07 -0700 |
commit | 7294f37424e65de310f45839110088a3a8e47b71 (patch) | |
tree | 8a990d8cc232c13d52ea87b167e6ecf22a1c4f29 | |
parent | da17dd303e4dbf663882cf926678cd7794077e9f (diff) | |
download | DotNetOpenAuth-7294f37424e65de310f45839110088a3a8e47b71.zip DotNetOpenAuth-7294f37424e65de310f45839110088a3a8e47b71.tar.gz DotNetOpenAuth-7294f37424e65de310f45839110088a3a8e47b71.tar.bz2 |
Added logging when 417 Expectation Continue is encountered.
-rw-r--r-- | src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs b/src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs index e8d8fe1..98c9d93 100644 --- a/src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs +++ b/src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs @@ -140,6 +140,7 @@ namespace DotNetOpenAuth.Messaging { // We don't want to blindly set all ServicePoints to not use the Expect header // as that would be a security hole allowing any visitor to a web site change // the web site's global behavior when calling that host. + Logger.Http.InfoFormat("HTTP POST to {0} resulted in 417 Expectation Failed. Changing ServicePoint to not use Expect: Continue next time.", request.RequestUri); request.ServicePoint.Expect100Continue = false; // TODO: investigate that CAS may throw here // An alternative to ServicePoint if we don't have permission to set that, |