summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-06-14 07:27:17 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-06-14 07:27:17 -0700
commitc9d65d5284a7b863445d65e9b9347df5baa3db1b (patch)
tree418c6a1785b1f15cd19a7bfb5b4ea757bd5ac28f /src
parentb18ceb3cf9752e172d62064f5a4f750ccbb311a1 (diff)
downloadDotNetOpenAuth-c9d65d5284a7b863445d65e9b9347df5baa3db1b.zip
DotNetOpenAuth-c9d65d5284a7b863445d65e9b9347df5baa3db1b.tar.gz
DotNetOpenAuth-c9d65d5284a7b863445d65e9b9347df5baa3db1b.tar.bz2
Added logging when 417 Expectation Continue is encountered.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/Messaging/StandardWebRequestHandler.cs1
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,