Diff
Not logged in

Differences From:

File src/xfer.c part of check-in [327823e39b] - Continuing work on the new HTTP transport mechanism. Make it more obvious where in the code extensions to support file: and https: belong. by drh on 2009-03-30 00:58:20. [view]

To:

File src/xfer.c part of check-in [80457ec79b] - When the sync protocol receives an HTML error message, print the entire text of the message verbatim. Fix for ticket 8a7a49c47d7f200126402c10803e40dbad595c52. by drh on 2009-08-01 13:42:22. [view]

@@ -1135,8 +1135,14 @@
       }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) ){