webmcp
annotate framework/env/request/get_path.lua @ 491:7a7770297ae8
Fixed error in error handling when catching illegal static path
| author | jbe | 
|---|---|
| date | Tue Jun 27 15:38:24 2017 +0200 (2017-06-27) | 
| parents | 32b79658e5ae | 
| children | 
| rev | line source | 
|---|---|
| jbe@227 | 1 --[[-- | 
| jbe@227 | 2 path = | 
| jbe@227 | 3 request.get_path() | 
| jbe@227 | 4 | 
| jbe@451 | 5 Returns the path in the URL of the request without the leading slash and without the query part. | 
| jbe@451 | 6 May return nil for a HTTP OPTIONS request with "*" target. | 
| jbe@227 | 7 | 
| jbe@227 | 8 --]]-- | 
| jbe@227 | 9 | 
| jbe@227 | 10 function request.get_path() | 
| jbe@241 | 11 return request._http_request.path | 
| jbe@227 | 12 end |