Fossil

Check-in [684eb478]
Login

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

Overview
Comment:Fix the SCGI processing so that it works with Nginx.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:684eb478e7bb99591c73b3fdd1e5f9dd72c6562e
User & Date: drh 2014-03-22 11:33:09
References
2014-03-23
09:46
Cherry-pick [684eb478e7] Fix the SCGI processing so that it works with Nginx check-in: 26eb1539 user: jan.nijtmans tags: branch-1.28
Context
2014-03-23
17:14
Added some text to the /tar help, per ML suggestion. check-in: 7ba06f15 user: stephan tags: trunk
09:42
merge trunk check-in: d7f04ea4 user: jan.nijtmans tags: cleanX
2014-03-22
11:33
Fix the SCGI processing so that it works with Nginx. check-in: 684eb478 user: drh tags: trunk
08:04
Add --strip-trailing-cr option to fossil (g)diff and fossil stash diff. Make option -w|--ignore-all-space (for fossil annotate, fossil blame, fossil (g)diff, fossil stash diff) work the same as its "gnu diff" counterpart. check-in: e753ce83 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/cgi.c.

872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
*/
void cgi_init(void){
  char *z;
  const char *zType;
  int len;
  const char *zRequestUri = cgi_parameter("REQUEST_URI",0);
  const char *zScriptName = cgi_parameter("SCRIPT_NAME",0);
  const char *zPathInfo = cgi_parameter("PATH_INFO","");

#ifdef FOSSIL_ENABLE_JSON
  json_main_bootstrap();
#endif
  g.isHTTP = 1;
  cgi_destination(CGI_BODY);
  if( zScriptName==0 ) malformed_request("missing SCRIPT_NAME");







|







872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
*/
void cgi_init(void){
  char *z;
  const char *zType;
  int len;
  const char *zRequestUri = cgi_parameter("REQUEST_URI",0);
  const char *zScriptName = cgi_parameter("SCRIPT_NAME",0);
  const char *zPathInfo = cgi_parameter("PATH_INFO",0);

#ifdef FOSSIL_ENABLE_JSON
  json_main_bootstrap();
#endif
  g.isHTTP = 1;
  cgi_destination(CGI_BODY);
  if( zScriptName==0 ) malformed_request("missing SCRIPT_NAME");