Mercurial Hosting > luan
comparison src/luan/modules/http/Http.luan @ 1648:224af797b1f9
Mainly small install script improvements
- Consistent usage of `$LUANHOME`, removed reliance on current directory.
- Made Luan build and install fine (on Linux) without requiring launching it via sudo. Only asks to elevate privileges if installation failed.
- Minor spelling mistake fix.
author | Fox |
---|---|
date | Mon, 28 Mar 2022 18:00:12 +0200 |
parents | a37ffe2d1b14 |
children | b82767112d8e |
comparison
equal
deleted
inserted
replaced
1647:7eddf1e990c0 | 1648:224af797b1f9 |
---|---|
198 function Http.handle_error(java_request,e) | 198 function Http.handle_error(java_request,e) |
199 Http.new_request(java_request) | 199 Http.new_request(java_request) |
200 local call = Http.error_priority(e) | 200 local call = Http.error_priority(e) |
201 local err = e.get_stack_trace_string() | 201 local err = e.get_stack_trace_string() |
202 logger[call](err.."\n"..trim(java_request.rawHead).."\n") | 202 logger[call](err.."\n"..trim(java_request.rawHead).."\n") |
203 local msg = "Internel Server Error\n\n"..err | 203 local msg = "Internal Server Error\n\n"..err |
204 return Response.errorResponse( Status.INTERNAL_SERVER_ERROR, msg ) | 204 return Response.errorResponse( Status.INTERNAL_SERVER_ERROR, msg ) |
205 end | 205 end |
206 | 206 |
207 Http.domain = nil -- set in domain specific cases | 207 Http.domain = nil -- set in domain specific cases |
208 | 208 |