From 6a5381a3de8f6212d729901611637ffa6a57fff2 Mon Sep 17 00:00:00 2001 From: j <74ef54cf@opayq.com> Date: Mon, 21 Aug 2017 22:39:12 -0700 Subject: [PATCH] potential workaround to PATCH on jvm --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0bb73b6..3881036 100644 --- a/README.md +++ b/README.md @@ -364,6 +364,14 @@ see something that is missing. - Chrome does not allow userspace handling of a 407 status code. It is treated like a network error. See [chromium issue](https://bugs.chromium.org/p/chromium/issues/detail?id=372136). - The `TRACE` HTTP method does not work in browsers and `PATCH` does not work in the JVM. + - You may be able to bypass this on the jvm with [this workaround](https://stackoverflow.com/a/32503192) if the server supports the `X-HTTP-Method-Override` header + ```scala + import fr.hmil.roshttp.{Method, HttpRequest} + HttpRequest("https://patch.me.up") + .withMethod(Method.POST) + .withHeader("X-HTTP-Method-Override", "PATCH") + .send + ``` # Contributing