Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

potential workaround to PATCH on jvm #67

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down