Skip to content

Commit 89fd0f6

Browse files
committed
Fixed call to obtain full media type string #281
1 parent 7b838fd commit 89fd0f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-app/services/au/org/ala/ecodata/forms/EcpWebService.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ class EcpWebService {
618618

619619
ResponseBody responseBody = response.body()
620620
okhttp3.MediaType respContentType = responseBody.contentType()
621-
String mediaType = respContentType.type()?.toLowerCase()
621+
String mediaType = respContentType.toString()?.toLowerCase()
622622
def responseData
623623
if (isTextBased(mediaType)) {
624624
responseData = responseBody.string()

0 commit comments

Comments
 (0)