Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | A follow-up patch to the previous "name" change, to work around the problem of HTTP GET requests not yet knowing that they are in JSON mode (POST requests know this). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
3bf1ad01625df042f3c3e75677fead0c |
| User & Date: | stephan 2012-03-18 03:37:02.402 |
Context
|
2012-03-18
| ||
| 03:37 | removed jsonApiVersion property for the time being. ... (check-in: bf903a4b99 user: stephan tags: trunk) | |
| 03:37 | A follow-up patch to the previous "name" change, to work around the problem of HTTP GET requests not yet knowing that they are in JSON mode (POST requests know this). ... (check-in: 3bf1ad0162 user: stephan tags: trunk) | |
| 02:46 | Added uuid=... option to the as-yet-undocumented /json/finfo. ... (check-in: 6472199167 user: stephan tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 |
continue;
}
}else{
g.zExtra = 0;
}
break;
}
if( g.zExtra ){
/* CGI parameters get this treatment elsewhere, but places like getfile
** will use g.zExtra directly.
** Reminder: the login mechanism uses 'name' differently, and may
** eventually have a problem/collision with this.
**
** Disabled by stephan when running in JSON mode because this
| > > > > > > > > > > > | 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 |
continue;
}
}else{
g.zExtra = 0;
}
break;
}
#ifdef FOSSIL_ENABLE_JSON
/*
** Workaround to allow us to customize some following behaviour for
** JSON mode. The problem is, we don't always know if we're in JSON
** mode at this point (namely, for GET mode we don't know but POST
** we do), so we snoop g.zPath and cheat a bit.
*/
if( g.zPath && (0==strcmp("json",g.zPath)) ){
g.json.isJsonMode = 1;
}
#endif
if( g.zExtra ){
/* CGI parameters get this treatment elsewhere, but places like getfile
** will use g.zExtra directly.
** Reminder: the login mechanism uses 'name' differently, and may
** eventually have a problem/collision with this.
**
** Disabled by stephan when running in JSON mode because this
|
| ︙ | ︙ |