aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-31 18:42:34 -0400
committerPaul Duncan <pabs@pablotron.org>2016-03-31 18:42:34 -0400
commitfa5037cdfe552b97afddfe22517f89dc99dacdcd (patch)
treec0963b7dbaa208bd191da21def1506e9aa021a2c /src
parent27d83bc510984c94c61f203981f5bfd840d54d05 (diff)
downloadold-guff-fa5037cdfe552b97afddfe22517f89dc99dacdcd.tar.bz2
old-guff-fa5037cdfe552b97afddfe22517f89dc99dacdcd.zip
add fixme stubs
Diffstat (limited to 'src')
-rw-r--r--src/guff/handlers/guff-stuff.cr10
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}