comparison src/luan/modules/url/LuanUrl.java @ 1421:8ab2f0fc3829

fix
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 26 Oct 2019 22:28:46 -0600
parents 225808b90cee
children 0ba144491a42
comparison
equal deleted inserted replaced
1420:225808b90cee 1421:8ab2f0fc3829
71 } 71 }
72 } 72 }
73 } 73 }
74 LuanTable auth = Utils.removeTable(options,"authorization"); 74 LuanTable auth = Utils.removeTable(options,"authorization");
75 if( auth != null ) { 75 if( auth != null ) {
76 auth = new LuanTable(auth);
76 if( headers!=null && headers.containsKey("authorization") ) 77 if( headers!=null && headers.containsKey("authorization") )
77 throw new LuanException( "can't define authorization with header 'authorization' defined" ); 78 throw new LuanException( "can't define authorization with header 'authorization' defined" );
78 String username = Utils.removeString(auth,"username"); 79 String username = Utils.removeString(auth,"username");
79 if( username==null ) username = ""; 80 if( username==null ) username = "";
80 String password = Utils.removeString(auth,"password"); 81 String password = Utils.removeString(auth,"password");