Don't set web.ctx.status

Apparently flup doesn't like it when I do this.
This commit is contained in:
Tom Willemse 2013-08-07 23:24:55 +02:00
parent c5699ecfa7
commit 18cf043be3

View file

@ -54,7 +54,6 @@
res)) res))
(defun no-such-file [] (defun no-such-file []
(setv web.ctx.status "404 Not Found")
"No such file.\n") "No such file.\n")
(defun get-file [name] (defun get-file [name]
@ -126,7 +125,6 @@
"hash" (get h 1) "hash" (get h 1)
"filename" name "filename" name
"type" (get-type (get (os.path.splitext name) 1))}) "type" (get-type (get (os.path.splitext name) 1))})
(setv web.ctx.status "201 Created")
(+ web.ctx.home "/" *prefix* (get h 0) "\n")))]]) (+ web.ctx.home "/" *prefix* (get h 0) "\n")))]])
(when (= __name__ "__main__") (when (= __name__ "__main__")