aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-08-07 23:24:55 +0200
committerGravatar Tom Willemse2013-08-07 23:24:55 +0200
commit18cf043be3175a0098dad1e24266c10b7f21922c (patch)
tree89c6d4ad50680f8ea768f1036bbf6ca112c911df
parentc5699ecfa713d040849e2564b7196a77583adb8a (diff)
downloadhypo-18cf043be3175a0098dad1e24266c10b7f21922c.tar.gz
hypo-18cf043be3175a0098dad1e24266c10b7f21922c.zip
Don't set web.ctx.status
Apparently flup doesn't like it when I do this.
-rwxr-xr-xhypo.hy2
1 files changed, 0 insertions, 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__")