webmcp

view framework/env/request/get_relative_baseurl.lua @ 382:810c020b0da4

Reverted changes to mondelefant_result_index and mondelefant_result_newindex C-functions (proxying of JSON document)
author jbe
date Mon Nov 16 18:31:49 2015 +0100 (2015-11-16)
parents 9fdfb27f8e67
children
line source
1 --[[--
2 baseurl =
3 request.get_relative_baseurl()
5 This function returns a relative base URL of the application. If request.force_absolute_baseurl() has been called before, an absolute URL is returned.
7 --]]--
9 function request.get_relative_baseurl()
10 if request._force_absolute_baseurl then
11 return (request.get_absolute_baseurl())
12 else
13 return request._relative_baseurl
14 end
15 end

Impressum / About Us