diff --git a/vars/drafter.groovy b/vars/drafter.groovy index 00d4b26..f110029 100644 --- a/vars/drafter.groovy +++ b/vars/drafter.groovy @@ -59,8 +59,12 @@ echo "Adding data to draftset ${id}" String url = "${baseUrl}/v1/draftset/${id}/data" if (graph) { - String encGraph = java.net.URLEncoder.encode(graph, "UTF-8") - url = url + "?graph=${encGraph}" + if (type.contains('charset')) { // workaroud odd issue with endpoint not parsing params if charset + url = url + "?graph=${graph}" + } else { + String encGraph = java.net.URLEncoder.encode(graph, "UTF-8") + url = url + "?graph=${encGraph}" + } } def response = httpRequest(acceptType: 'APPLICATION_JSON', authentication: credentials,