Commit Graph

54 Commits

Author SHA1 Message Date
Juhani Krekelä 0867a6ef40 Use itemtypes to figure out the mime type in HTTP mode 2021-09-10 17:58:48 +03:00
Juhani Krekelä 53a0ef3daf Remove the unnecessary / from ends of self-closing html elements 2021-04-20 03:21:05 +03:00
Juhani Krekelä baf9ec5387 Blacklist → block(list) 2020-07-21 23:18:58 +03:00
Juhani Krekelä 3abe65a551 Log ClientHellos nicely 2020-06-08 16:30:04 +03:00
Juhani Krekelä 97d01a088c Don't log empty requests 2020-06-02 03:43:13 +03:00
Juhani Krekelä 0a8e10db90 Improve logging of dead connections that didn't make a request 2020-05-28 20:43:36 +03:00
Juhani Krekelä ee1bc97159 Have a bit of CSS 2018-08-14 12:31:01 +03:00
Juhani Krekelä b5bd410dfb Increase timeout 2018-07-15 16:31:47 +03:00
Juhani Krekelä 10baa79ea8 Make not founds match founds in the log 2018-07-10 23:15:41 +03:00
Juhani Krekelä 7a598ce7ed Add a note about right URL syntax to the item type not recognized error 2018-07-02 11:31:36 +03:00
Juhani Krekelä 78a9e61df2 Throw an error on urecognized item types 2018-06-19 18:27:51 +03:00
Juhani Krekelä 267f7383d5 Correct terminology selector → itemtype 2018-06-19 18:13:01 +03:00
Juhani Krekelä d5ed33982c Don't hardcode files 2018-06-17 22:18:28 +03:00
Juhani Krekelä a3cb6064c3 Add info about the item type in the file not found page 2018-06-17 18:36:05 +03:00
Juhani Krekelä a5cf76dfe2 Remove compatibility kludge for gophersrv's old type of URL 2018-06-17 18:06:42 +03:00
Juhani Krekelä 3a01c99128 Add support for HTTP HEAD 2018-06-16 21:48:35 +03:00
Juhani Haverinen f553d18ab1 Finally add HTML translation for gophermaps 2018-01-27 19:34:11 +02:00
Juhani Haverinen a559a50e33 Change log message for hURL 2016-11-11 20:50:44 +02:00
Juhani Haverinen 03aace620c Add server-side hURL 2016-11-11 20:44:29 +02:00
Juhani Haverinen ade4503355 Add protocol logging 2016-11-07 17:28:07 +02:00
Juhani Haverinen b5cdd379cd Add user agent logging 2016-11-07 17:21:20 +02:00
Juhani Haverinen 2ced36a6f0 Add timestamps to logs and log all requests 2016-09-10 23:08:06 +03:00
Juhani Haverinen e278d5d600 Recognise .html extension 2016-08-18 16:58:19 +03:00
Juhani Haverinen 836b21824d Add logging of requests not found 2016-08-14 22:36:56 +03:00
Juhani Haverinen b10d070701 Add blacklist feature 2016-08-05 16:18:33 +03:00
Juhani Haverinen 3adb47efde Do SO_REUSEADDR 2016-08-03 01:19:08 +03:00
Juhani Haverinen 11754b56e3 Change default port as we replace gophersrv 2016-08-03 01:14:58 +03:00
Juhani Haverinen 3b353910f1 Add CGI support back 2016-08-03 01:13:45 +03:00
Juhani Haverinen 59f8fac26f Add preliminary support for opening files 2016-08-02 21:30:34 +03:00
Juhani Haverinen 0ffdc0ad6d Send textual data encoded correctly 2016-08-02 20:49:47 +03:00
Juhani Haverinen 851f3e9647 Respond with appropriate headers 2016-08-02 20:09:01 +03:00
Juhani Haverinen a1b7b3bb7f Actually pass the rest field from get_request 2016-08-02 14:53:42 +03:00
Juhani Haverinen d3cfc5601e Add building of full path, finding mime type 2016-08-02 05:49:25 +03:00
Juhani Haverinen 568b650acd Make SocketReader return its buffer when told to exit 2016-08-02 03:34:15 +03:00
Juhani Haverinen c14310a010 Add .gitignore 2016-08-02 03:29:29 +03:00
Juhani Haverinen 1ddaaf5bf0 Rehaul request reading, add preliminary support for Gopher+ 2016-08-02 03:27:38 +03:00
Juhani Haverinen cf66f1eee2 Add path normalization 2016-08-02 01:33:02 +03:00
Juhani Haverinen a7c9f89581 Create OneArgumentException to make creating exceptions less boilerplatey 2016-08-02 01:14:19 +03:00
Juhani Haverinen 0e1cb2952d Remove last globals, be actually re-entrant 2016-08-02 00:30:46 +03:00
Juhani Haverinen dbcd1ee014 standardize "->" → "→" 2016-08-02 00:20:19 +03:00
Juhani Haverinen cd65323626 Make neomi usable as a library by running listen(default_config) only if not imported 2016-08-02 00:04:50 +03:00
Juhani Haverinen d52af89cb1 Pass config explicitly, change listen to take config instead of port 2016-08-02 00:03:51 +03:00
Juhani Haverinen a1b33985d3 Use enum.Enum 2016-08-01 21:04:32 +03:00
Juhani Haverinen bf9877fc1f Tiny bugfix for HTTP parsing 2016-07-12 18:02:36 +03:00
Juhani Haverinen 4ce118f670 Make worker thread dying log the address 2016-07-12 17:45:55 +03:00
Juhani Haverinen 702584c2e3 Fix sock -> conn 2016-07-12 17:42:36 +03:00
Juhani Haverinen 3fb2e26983 Minor performance tweak 2016-07-12 17:40:24 +03:00
Juhani Haverinen 1cbd861e61 Fix typos 2016-07-12 17:38:53 +03:00
Juhani Haverinen 9548eab439 Some anti-DOS protection 2016-07-12 17:36:57 +03:00
Juhani Haverinen 841f7025da Uncomment error handling block commented for debug 2016-07-12 17:23:58 +03:00