Skip to content

Commit 93bd134

Browse files
committed
Clean up docs
1 parent 977bf3c commit 93bd134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ Set username/password for any host and realm for a particular request. By defaul
256256
{% highlight java %}
257257
AsyncHttpClient client = new AsyncHttpClient();
258258
client.setBasicAuth("username","password/token");
259-
client.get("http://example.com".....); //etc.
259+
client.get("http://example.com");
260260
{% endhighlight %}
261261

262262
You can also provide a more specific Authentication Scope (recommended)
263263
{% highlight java %}
264264
AsyncHttpClient client = new AsyncHttpClient();
265-
client.setBasicAuth("username","password", new AuthScope("example.com",80, AuthScope.ANY_REALM));
266-
client.get("http://example.com".....); //etc.
265+
client.setBasicAuth("username","password", new AuthScope("example.com", 80, AuthScope.ANY_REALM));
266+
client.get("http://example.com");
267267
{% endhighlight %}
268268

269269
See the [RequestParams Javadoc](http://loopj.com/android-async-http/doc/com/loopj/android/http/AsyncHttpClient.html)

0 commit comments

Comments
 (0)