27881ed0f0
Allow registering makers specific to POST or GET requests.
2017-05-23 19:59:49 +01:00
014f18ec57
Simplify prefix len calculation and make it more flexible.
...
The prefix in tawashi.ini now can omit the trailing /.
If missing, it will still be trimmed from PATH_INFO if
necessary.
2017-05-23 19:59:49 +01:00
e2437a6b12
Add more logging and error checking.
2017-05-22 09:27:17 +01:00
d3319512f4
Case-insensitive check for HTTPS=on.
2017-05-19 19:48:31 +01:00
58c3f5c224
Log an error if host_path looks wrong.
2017-05-19 19:14:07 +01:00
34daf8e411
Decompose the base_uri option.
...
This allows support for having tawashi in a subdirectory
of your domain, eg http://example.com/tawashi
2017-05-19 10:01:22 +01:00
c5f2bc055a
Append the protocol to the uri from the code.
...
This means if you set uri name to http://example.com in the
config file you will actually get base_uri to be
http://http://example.com .
2017-05-18 19:17:22 +01:00
07135f215c
Delete get_env, which confused me a lot.
...
Get raw environment variables directly from main().
Add code to split on '=' in cgi_environment_vars and only pick
the ones that are interesting, just as before.
2017-05-08 19:46:14 +01:00
e1687c96ff
Split tawashi into lib+executable to enable unit testing
2017-05-04 19:52:18 +01:00