Mercurial Hosting > luan
changeset 732:d7371dc8c2e7
add Http.request.port
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 12 Jun 2016 23:05:31 -0600 |
parents | c92b3fabf92a |
children | ffbbe25dab09 |
files | http/src/luan/modules/http/Http.luan http/src/luan/modules/http/HttpServicer.java |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/http/src/luan/modules/http/Http.luan Fri Jun 10 15:50:05 2016 -0600 +++ b/http/src/luan/modules/http/Http.luan Sun Jun 12 23:05:31 2016 -0600 @@ -63,6 +63,7 @@ -- this.path -- this.protocol this.scheme = "http" -- default + this.port = 80 -- default this.parameters = {} this.parameter = {__plural=this.parameters} set_metatable(this.parameter,singular_metatable)
--- a/http/src/luan/modules/http/HttpServicer.java Fri Jun 10 15:50:05 2016 -0600 +++ b/http/src/luan/modules/http/HttpServicer.java Sun Jun 12 23:05:31 2016 -0600 @@ -82,6 +82,7 @@ requestTbl.rawPut("path",request.getRequestURI()); requestTbl.rawPut("protocol",request.getProtocol()); requestTbl.rawPut("scheme",request.getScheme()); + requestTbl.rawPut("port",request.getServerPort()); LuanTable headersTbl = (LuanTable)requestTbl.rawGet("headers"); for( Enumeration<String> enKeys = request.getHeaderNames(); enKeys.hasMoreElements(); ) {