1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-01-13 19:56:40 +00:00
Commit graph

14 commits

Author SHA1 Message Date
7115e9eb63 Use a light colours style for highlighted pasties. 2017-05-23 09:14:33 +01:00
6ea74d090a Set plain text mode *before* returning. 2017-05-22 20:28:18 +01:00
e2437a6b12 Add more logging and error checking. 2017-05-22 09:27:17 +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
cdd23d35d0 Make on_process() return an HttpHeader.
Response type is now decided by on_process' return value.
2017-05-18 19:17:22 +01:00
5a4794240b Disable colouring when lang token is "colorless". 2017-05-16 23:07:00 +01:00
ec80734625 Add http status codes and save dummy error into the mstch context. 2017-05-14 03:38:41 +01:00
73707c2ad0 Revert "Pass the ResponseFactory object down to the Response itself."
This reverts commit 3bc6c56c03.
2017-05-12 22:18:03 +01:00
3bc6c56c03 Pass the ResponseFactory object down to the Response itself. 2017-05-12 09:36:01 +01:00
10da75caf5 Remove parameters from Response's constructor.
They can safely be defaulted and derived classes can
change their preferences later inside their constructor
if they need to.
2017-05-12 09:18:49 +01:00
9e1e18dcf0 Set default.lang if user's lang is not found. 2017-05-08 19:48:09 +01:00
cd1be59cfa Pass the output stream and cgi_env to Response.
Mask the fact that they are globals, because I need
to be able to pass different classes in order to be
able to write unit tests for response classes.
2017-05-06 19:48:44 +01:00
8980a1d1ff I don't really need to store the page name in the base class. 2017-05-06 19:16:57 +01:00
e1687c96ff Split tawashi into lib+executable to enable unit testing 2017-05-04 19:52:18 +01:00
Renamed from src/pastie_response.cpp (Browse further)