Skip to content

Commit 852e8e5

Browse files
author
hideki
committed
Fixed Android 249 - request non json attachment with Header 'Accept: application/json' should return 406
- It seems CBL Android/Java does not set error message in case of error.
1 parent 205b624 commit 852e8e5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/couchbase/lite/router/Router.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ public void start() {
594594
if (status.getCode() != 0 && status.isSuccessful() == false && connection.getResponseBody() == null) {
595595
Map<String, Object> result = new HashMap<String, Object>();
596596
result.put("status", status.getCode());
597+
result.put("error", status.getHTTPMessage());
597598
connection.setResponseBody(new Body(result));
598599
}
599600

0 commit comments

Comments
 (0)