Mercurial Hosting > luan
changeset 1151:dbb3cb906482
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 04 Feb 2018 18:50:25 -0700 |
parents | 0842b9b570f8 |
children | 21d157b153fe |
files | src/luan/modules/url/LuanUrl.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/modules/url/LuanUrl.java Sun Feb 04 18:03:37 2018 -0700 +++ b/src/luan/modules/url/LuanUrl.java Sun Feb 04 18:50:25 2018 -0700 @@ -68,8 +68,8 @@ } Map auth = getMap(luan,map,"authorization"); if( auth != null ) { - if( headers!=null && headers.containsKey("Authorization") ) - throw new LuanException( "can't define authorization with header 'Authorization' defined" ); + if( headers!=null && headers.containsKey("authorization") ) + throw new LuanException( "can't define authorization with header 'authorization' defined" ); String user = getString(auth,"user"); String password = getString(auth,"password"); if( !auth.isEmpty() ) @@ -83,7 +83,7 @@ String val = "Basic " + Base64.getEncoder().encodeToString(sb.toString().getBytes()); if( headers == null ) headers = new HashMap(); - headers.put("Authorization",val); + headers.put("authorization",val); } Map params = getMap(luan,map,"parameters"); String enctype = getString(map,"enctype");