Mercurial Hosting > luan
comparison src/luan/modules/http/Http.luan @ 1257:e38f5869e9df
don't reset in send_redirect and other improvements
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 20 Sep 2018 21:04:41 -0600 |
parents | c147e2e877e3 |
children | e8020216dee7 |
comparison
equal
deleted
inserted
replaced
1256:c147e2e877e3 | 1257:e38f5869e9df |
---|---|
72 end | 72 end |
73 | 73 |
74 this.reset() | 74 this.reset() |
75 | 75 |
76 function this.send_redirect(location) | 76 function this.send_redirect(location) |
77 this.reset() | |
78 this.status = STATUS.FOUND | 77 this.status = STATUS.FOUND |
79 this.headers["location"] = location | 78 this.headers["location"] = location |
80 end | 79 end |
81 | 80 |
82 function this.send_error(status,msg) | 81 function this.send_error(status,msg) |