Fossil

Check-in [2d162083]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Reset the reply content at the beginning of the /xfer method in case any sqlite3_log() warning messages had previously been inserted.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2d1620830e23f7c6c6bc1318503edef67e2084f7
User & Date: drh 2011-09-12 18:13:48
Context
2011-09-12
18:19
Merge the minor fixes on the dmitry-fixes branch into trunk. check-in: ce354d0a user: drh tags: trunk
18:13
Reset the reply content at the beginning of the /xfer method in case any sqlite3_log() warning messages had previously been inserted. check-in: 2d162083 user: drh tags: trunk
13:06
Fix typo in comment check-in: b582ff98 user: joerg tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/xfer.c.

814
815
816
817
818
819
820

821
822
823
824
825
826
827
  }
  g.zLogin = "anonymous";
  login_set_anon_nobody_capabilities();
  login_check_credentials();
  memset(&xfer, 0, sizeof(xfer));
  blobarray_zero(xfer.aToken, count(xfer.aToken));
  cgi_set_content_type(g.zContentType);

  if( db_schema_is_outofdate() ){
    @ error database\sschema\sis\sout-of-date\son\sthe\sserver.
    return;
  }
  blob_zero(&xfer.err);
  xfer.pIn = &g.cgiIn;
  xfer.pOut = cgi_output_blob();







>







814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
  }
  g.zLogin = "anonymous";
  login_set_anon_nobody_capabilities();
  login_check_credentials();
  memset(&xfer, 0, sizeof(xfer));
  blobarray_zero(xfer.aToken, count(xfer.aToken));
  cgi_set_content_type(g.zContentType);
  cgi_reset_content();
  if( db_schema_is_outofdate() ){
    @ error database\sschema\sis\sout-of-date\son\sthe\sserver.
    return;
  }
  blob_zero(&xfer.err);
  xfer.pIn = &g.cgiIn;
  xfer.pOut = cgi_output_blob();