Don't set web.ctx.status
Apparently flup doesn't like it when I do this.
This commit is contained in:
parent
c5699ecfa7
commit
18cf043be3
1 changed files with 0 additions and 2 deletions
2
hypo.hy
2
hypo.hy
|
@ -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__")
|
||||||
|
|
Loading…
Reference in a new issue