diff options
Diffstat (limited to 'src/guff/handlers')
-rw-r--r-- | src/guff/handlers/guff-stuff.cr | 10 |
1 files changed, 10 insertions, 0 deletions
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} |