Mercurial Hosting > luan
changeset 480:44caaa6a3d92
add Http.request.protocol
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 May 2015 16:43:04 -0600 |
parents | 1285c52ea9d4 |
children | 5d4a78c93383 |
files | web/src/luan/modules/web/HttpServicer.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
diff -r 1285c52ea9d4 -r 44caaa6a3d92 web/src/luan/modules/web/HttpServicer.java --- a/web/src/luan/modules/web/HttpServicer.java Mon May 11 15:29:29 2015 -0600 +++ b/web/src/luan/modules/web/HttpServicer.java Mon May 11 16:43:04 2015 -0600 @@ -169,6 +169,9 @@ getters.rawPut( "remote_address", new LuanJavaFunction( HttpServletRequest.class.getMethod( "getRemoteAddr" ), request ) ); + getters.rawPut( "protocol", new LuanJavaFunction( + HttpServletRequest.class.getMethod( "getProtocol" ), request + ) ); LuanTable cookies = new LuanMeta() { @Override public Object __index(LuanState luan,LuanTable tbl,Object key) {