openvidu-test-browsers: allow PATCH method on CustomHttpClient

pull/370/head
pabloFuente 2019-10-14 17:56:06 +02:00
parent 45189f3fa8
commit 12fff2a2fb
1 changed files with 2 additions and 0 deletions

View File

@ -197,7 +197,9 @@ public class CustomHttpClient {
case PUT:
request = Unirest.put(path);
break;
case PATCH:
default:
request = Unirest.patch(path);
break;
}
((HttpRequestWithBody) request).header("Content-Type", "application/json").body(body.replaceAll("'", "\""));