Repository navigation
Replace reflection with X-HTTP-Method-Override - #1083
Conversation
|
@gsmet Heads up, if you are using the built-in HttpConnector in your systems as opposed to okttp3.OkHttpConnector this may effect your tests. The product change should be transparent to end-users but test systems that Wiremock and expect specific requests will detect the difference. |
|
Thanks for the heads up. I don't use the HttpConnector in production as this dark magic reflection thingy didn't work in native mode with GraalVM so that's a good thing it's gone! But sure my tests will be affected. |
timja
left a comment
There was a problem hiding this comment.
could look at a multi release jar and using the built in modern http client at some point as well
|
@bitwiseman any chance you could release a new version? I start seeing complaints about this from people trying JDK 16. |
Revert #1083 reflective access for PATCH method
Description
To workaround the limitation where
HttpURLConnectiondoes not supportPATCHmethod, the library was using reflection to change the method string. This involved quite a bit of hackery.This change replaces all that with the
X-HTTP-Method-Override.Tested with a few API calls and but mostly manually updated test resources.
Fixes #754
@aalmiray
Before submitting a PR:
We love getting PRs, but we hate asking people for the same basic changes every time.
master. Create your PR from that branch.mvn -D enable-ci clean install sitelocally. If this command doesn't succeed, your change will not pass CI.When creating a PR: