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:
parent
fb22d8ff72
commit
3e8ed5a22a
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue