@@ -88,6 +88,7 @@ private enum TDContentOptions {
8888 Map <String , Object > changesFilterParams = null ;
8989 private boolean longpoll = false ;
9090 private boolean waiting = false ;
91+ private URL source = null ;
9192
9293 public static String getVersionString () {
9394 return Version .getVersion ();
@@ -1189,7 +1190,7 @@ public boolean run() {
11891190 status .setCode (Status .BAD_REQUEST );
11901191 } else {
11911192 List <String > history = Database .parseCouchDBRevisionHistory (doc );
1192- db .forceInsert (rev , history , null );
1193+ db .forceInsert (rev , history , source );
11931194 }
11941195 } else {
11951196 Status outStatus = new Status ();
@@ -1979,7 +1980,7 @@ public Status do_PUT_Document(Database _db, String docID, String _attachmentName
19791980 throw new CouchbaseLiteException (Status .BAD_REQUEST );
19801981 }
19811982 List <String > history = Database .parseCouchDBRevisionHistory (body .getProperties ());
1982- db .forceInsert (rev , history , null );
1983+ db .forceInsert (rev , history , source );
19831984 }
19841985 return status ;
19851986 }
@@ -2143,6 +2144,10 @@ public Status do_POST_DesignDocument(Database _db, String designDocID, String vi
21432144 return queryDesignDoc (designDocID , viewName , keys );
21442145 }
21452146
2147+ public void setSource (URL source ) {
2148+ this .source = source ;
2149+ }
2150+
21462151 @ Override
21472152 public String toString () {
21482153 String url = "Unknown" ;
0 commit comments