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))
|
||||
|
||||
(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__")
|
||||
|
|
Loading…
Reference in a new issue