webmcp

view framework/env/request/force_absolute_baseurl.lua @ 280:5af7c66fbc08

Use "./" instead of "" as relative baseurl
author jbe
date Sat Mar 21 19:26:34 2015 +0100 (2015-03-21)
parents d6bcb9eadd39
children
line source
1 --[[--
2 request.force_absolute_baseurl()
4 Calling this function causes subsequent calls of request.get_relative_baseurl() to return absolute URLs instead.
6 --]]--
8 function request.force_absolute_baseurl()
9 request.configure(function()
10 request._force_absolute_baseurl = true
11 end)
12 end

Impressum / About Us