File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/com/couchbase/devex Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,15 @@ public class CouchDBConfig implements ImporterConfig {
5050
5151 public static final String OFFSET_PROPERTY = "offset" ;
5252
53- @ Value ("${couchdb.downloadURL:http://127.0.0.1:5984/database_export/_all_docs?include_docs=true}" )
54- String couchDBRequest ;
53+ private String downloadURL = "http://127.0.0.1:5984/database_export/_all_docs?include_docs=true" ;
5554
5655 ObjectMapper om = new ObjectMapper ();
5756
5857 @ Override
5958 public Observable <Document > startImport () {
6059 BufferedReader inp2 = null ;
6160 try {
62- URL url = new URL (couchDBRequest );
61+ URL url = new URL (downloadURL );
6362 HttpURLConnection conn = (HttpURLConnection ) url .openConnection ();
6463 conn .setRequestMethod ("GET" );
6564 conn .setRequestProperty ("Accept" , "application/json" );
You can’t perform that action at this time.
0 commit comments