Reduce use of magic number 200 (Use HttpStatus.SC_OK)

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1719228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2015-12-10 22:51:04 +00:00
parent fb22d8ff72
commit 3e8ed5a22a
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class ClientWithRequestFuture {
@Override
public Boolean handleResponse(HttpResponse response) throws ClientProtocolException, IOException {
// simply return true if the status was OK
return response.getStatusLine().getStatusCode() == 200;
return response.getStatusLine().getStatusCode() == HttpStatus.SC_OK;
}
};