From fa5037cdfe552b97afddfe22517f89dc99dacdcd Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 31 Mar 2016 18:42:34 -0400 Subject: add fixme stubs --- src/guff/handlers/guff-stuff.cr | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/guff') diff --git a/src/guff/handlers/guff-stuff.cr b/src/guff/handlers/guff-stuff.cr index cc3ac6c..8d1b433 100644 --- a/src/guff/handlers/guff-stuff.cr +++ b/src/guff/handlers/guff-stuff.cr @@ -29,6 +29,10 @@ class Guff::Handlers::GuffStuffHandler < Guff::Handler if context.request.headers["if-none-match"]? == file_digest # cached, send 304 not modified context.response.status_code = 304 + + # FIXME? + # context.response.headers["connection"] = "close" + # context.response.write("".to_slice) else # not cached, set code and send headers context.response.status_code = 200 @@ -46,7 +50,13 @@ class Guff::Handlers::GuffStuffHandler < Guff::Handler else # file not found context.response.status_code = 404 + + # FIXME? + # context.response.write("".to_slice) end + + # FIXME? + # context.response.close end VALID_METHODS = %w{GET HEAD} -- cgit v1.2.3