Skip to content

Commit 7e9e60c

Browse files
committed
fixed indentation
1 parent 1eee466 commit 7e9e60c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/com/loopj/android/http/AsyncHttpClient.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void process(HttpRequest request, HttpContext context) {
138138
request.addHeader(HEADER_ACCEPT_ENCODING, ENCODING_GZIP);
139139
}
140140
for (String header : clientHeaderMap.keySet()) {
141-
request.addHeader(header, clientHeaderMap.get(header));
141+
request.addHeader(header, clientHeaderMap.get(header));
142142
}
143143
}
144144
});
@@ -239,31 +239,31 @@ public void setSSLSocketFactory(SSLSocketFactory sslSocketFactory) {
239239
* @param value the contents of the header
240240
*/
241241
public void addHeader(String header, String value) {
242-
clientHeaderMap.put(header, value);
242+
clientHeaderMap.put(header, value);
243243
}
244244

245245
/**
246246
* Sets basic authentication for the request. Uses AuthScope.ANY. This is the same as
247-
* setBasicAuth('username','password',AuthScope.ANY)
247+
* setBasicAuth('username','password',AuthScope.ANY)
248248
* @param username
249249
* @param password
250250
*/
251251
public void setBasicAuth(String user, String pass){
252-
AuthScope scope = AuthScope.ANY;
253-
setBasicAuth(user, pass, scope);
252+
AuthScope scope = AuthScope.ANY;
253+
setBasicAuth(user, pass, scope);
254254
}
255255

256256
/**
257257
* Sets basic authentication for the request. You should pass in your AuthScope for security. It should be like this
258-
* setBasicAuth("username","password", new AuthScope("host",port,AuthScope.ANY_REALM))
258+
* setBasicAuth("username","password", new AuthScope("host",port,AuthScope.ANY_REALM))
259259
* @param username
260260
* @param password
261-
* @param scope - an AuthScope object
262-
*
261+
* @param scope - an AuthScope object
262+
*
263263
*/
264264
public void setBasicAuth( String user, String pass, AuthScope scope){
265-
UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(user,pass);
266-
this.httpClient.getCredentialsProvider().setCredentials(scope, credentials);
265+
UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(user,pass);
266+
this.httpClient.getCredentialsProvider().setCredentials(scope, credentials);
267267
}
268268

269269
/**

0 commit comments

Comments
 (0)