Skip to content

Commit a61adff

Browse files
authored
fix(cat-voices): document upload (#2654)
1 parent b1c7d14 commit a61adff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/api/converters/cbor_or_json_converter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'package:http/http.dart' as http;
1212
/// mapping out these requests to a proper converter type.
1313
class CborOrJsonDelegateConverter implements Converter {
1414
static const cborRequests = [
15-
(method: 'PUT', path: '/api/v1/document'),
15+
(method: 'PUT', path: '/v1/document'),
1616
];
1717

1818
final Converter cborConverter;
@@ -49,7 +49,7 @@ class CborOrJsonDelegateConverter implements Converter {
4949
bool _isCborRequest(http.BaseRequest request) {
5050
for (final cborRequest in cborRequests) {
5151
if (cborRequest.method.equalsIgnoreCase(request.method) &&
52-
cborRequest.path.equalsIgnoreCase(request.url.path)) {
52+
request.url.path.endsWith(cborRequest.path)) {
5353
return true;
5454
}
5555
}

0 commit comments

Comments
 (0)