.url(url)
.head()     // make a HEAD request because we only want the response code
.build();
return networkCall(client.newCall(request))
.subscribeOn(Schedulers.io())
<BUG>.observeOn(AndroidSchedulers.mainThread())

.unsubscribeOn(Schedulers.io());</BUG>
}
<BUG>public static Observable<com.squareup.okhttp.Response> networkCall(@NonNull Call call) {
</BUG>
return Observable.create(subscriber -> {

.url(url)
.head()     // make a HEAD request because we only want the response code
.build();
return networkCall(client.newCall(request))
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread());
}
public static Observable<okhttp3.Response> networkCall(@NonNull Call call) {
return Observable.create(subscriber -> {
