File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
library/src/com/loopj/android/http Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -259,9 +259,9 @@ public void addHeader(String header, String value) {
259
259
* @param username
260
260
* @param password
261
261
*/
262
- public void setBasicAuth (String user , String pass ) {
262
+ public void setBasicAuth (String username , String password ) {
263
263
AuthScope scope = AuthScope .ANY ;
264
- setBasicAuth (user , pass , scope );
264
+ setBasicAuth (username , password , scope );
265
265
}
266
266
267
267
/**
@@ -272,8 +272,8 @@ public void setBasicAuth(String user, String pass) {
272
272
* @param password
273
273
* @param scope - an AuthScope object
274
274
*/
275
- public void setBasicAuth (String user , String pass , AuthScope scope ) {
276
- UsernamePasswordCredentials credentials = new UsernamePasswordCredentials (user , pass );
275
+ public void setBasicAuth (String username , String password , AuthScope scope ) {
276
+ UsernamePasswordCredentials credentials = new UsernamePasswordCredentials (username , password );
277
277
this .httpClient .getCredentialsProvider ().setCredentials (scope , credentials );
278
278
}
279
279
You can’t perform that action at this time.
0 commit comments