From 18cf043be3175a0098dad1e24266c10b7f21922c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 7 Aug 2013 23:24:55 +0200 Subject: [PATCH] Don't set web.ctx.status Apparently flup doesn't like it when I do this. --- hypo.hy | 2 -- 1 file changed, 2 deletions(-) diff --git a/hypo.hy b/hypo.hy index e27b62a..9f3a7b0 100755 --- a/hypo.hy +++ b/hypo.hy @@ -54,7 +54,6 @@ res)) (defun no-such-file [] - (setv web.ctx.status "404 Not Found") "No such file.\n") (defun get-file [name] @@ -126,7 +125,6 @@ "hash" (get h 1) "filename" name "type" (get-type (get (os.path.splitext name) 1))}) - (setv web.ctx.status "201 Created") (+ web.ctx.home "/" *prefix* (get h 0) "\n")))]]) (when (= __name__ "__main__")