jbe/bsw@0: --[[-- jbe/bsw@0: request.set_absolute_baseurl( jbe/bsw@0: url -- Base URL of the application jbe/bsw@0: ) jbe/bsw@0: jbe@254: Calling this function is neccessary for every configuration, because an absolute URL is needed for HTTP redirects. If the URL of the application is volatile, and if you don't bother violating the HTTP standard, it is possible to skip calling this function in your configuration. jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function request.set_absolute_baseurl(url) jbe@368: request.configure(function() jbe@368: if string.find(url, "/$") then jbe@368: request._absolute_baseurl = url jbe@368: else jbe@368: request._absolute_baseurl = url .. "/" jbe@368: end jbe@368: end) jbe/bsw@0: end