OKHttp "method GET must not have a request body" 에러
2020. 2. 26.
오류 메세지 java.lang.IllegalArgumentException: method GET must not have a request body. 오류 발생 코드 val httpClient = OkHttpClient() val formBodyBuilder = FormBody.Builder() for(endpoint in endpointArray) { formBodyBuilder.add(endpoint[KEY], endpoint[VALUE]) } val request = Request.Builder().url(strURL) .method("GET", formBodyBuilder.build()) // Exception! .build() okhttp의 2020년 2월 최신 버전인 3.11.0 기준으로 GE..