Check-in [80457ec79b]
Not logged in
Overview

SHA1 Hash:80457ec79be10b32f372c69e0093c8fea7f0471b
Date: 2009-08-01 13:42:22
User: drh
Comment:When the sync protocol receives an HTML error message, print the entire text of the message verbatim. Fix for ticket 8a7a49c47d7f200126402c10803e40dbad595c52.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/xfer.c from [0df98a4b53] to [9688d1b60b].

@@ -1134,10 +1134,16 @@
         blob_appendf(&xfer.err, "server says: %s", zMsg);
       }else
 
       /* Unknown message */
       {
+        if( blob_str(&xfer.aToken[0])[0]=='<' ){
+          fossil_fatal(
+            "server replies with HTML instead of fossil sync protocol:\n%b",
+            &recv
+          );
+        }
         blob_appendf(&xfer.err, "unknown command: %b", &xfer.aToken[0]);
       }
 
       if( blob_size(&xfer.err) ){
         fossil_fatal("%b", &xfer.err);