forked from mirrors/treebird
Add path_info test
FossilOrigin-Name: e1c336e95dffa0c40a5acc778c9ad17c50d00cec653261a642468adcf626779e
This commit is contained in:
parent
ab220ccae8
commit
4813dc30c6
2 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,7 @@
|
|||
enum env_tbl_index
|
||||
{
|
||||
ENV_HTTP_COOKIES = 0,
|
||||
ENV_CONTEXT_PATH,
|
||||
ENV_PATH_INFO,
|
||||
ENV_QUERY_STRING,
|
||||
ENV_REQUEST_METHOD,
|
||||
ENV_SCRIPT_NAME,
|
||||
|
@ -46,7 +46,7 @@ void content_test(mastodont_t* api, char** data, size_t data_size)
|
|||
{
|
||||
char* env_tbl[] = {
|
||||
getenv("HTTP_COOKIES"),
|
||||
getenv("CONTEXT_PATH"),
|
||||
getenv("PATH_INFO"),
|
||||
getenv("QUERY_STRING"),
|
||||
getenv("REQUEST_METHOD"),
|
||||
getenv("SCRIPT_NAME"),
|
||||
|
@ -59,13 +59,13 @@ void content_test(mastodont_t* api, char** data, size_t data_size)
|
|||
easprintf(&page,
|
||||
data_test_html,
|
||||
ENV_TBL_GET(ENV_HTTP_COOKIES),
|
||||
ENV_TBL_GET(ENV_CONTEXT_PATH),
|
||||
ENV_TBL_GET(ENV_PATH_INFO),
|
||||
ENV_TBL_GET(ENV_QUERY_STRING),
|
||||
ENV_TBL_GET(ENV_REQUEST_METHOD),
|
||||
ENV_TBL_GET(ENV_SCRIPT_NAME),
|
||||
ENV_TBL_GET(ENV_HTTP_REFERER),
|
||||
ENV_TBL_GET(ENV_HTTP_USER_AGENT),
|
||||
ENV_TBL_GET(ENV_CONTEXT_PATH));
|
||||
ENV_TBL_GET(ENV_CONTEXT_LENGTH));
|
||||
|
||||
struct base_page b = {
|
||||
.locale = L10N_EN_US,
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<td>%s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CONTEXT_PATH</td>
|
||||
<td>PATH_INFO</td>
|
||||
<td>%s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<td>%s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CONTEXT_PATH</td>
|
||||
<td>CONTENT_LENGTH</td>
|
||||
<td>%s</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue