-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
bug: fix supporting the Patch method and logging the body #67
Conversation
- Patch not configured to support Body - Add a unit test
Codecov Report
@@ Coverage Diff @@
## master #67 +/- ##
=======================================
Coverage 52.81% 52.81%
=======================================
Files 66 66
Lines 2378 2378
Branches 329 329
=======================================
Hits 1256 1256
Misses 980 980
Partials 142 142
Continue to review full report at Codecov.
|
@@ -91,8 +91,9 @@ private bool ParseBody(string method) | |||
TRACE - Body not supported. | |||
OPTIONS - Body supported but no semantics on usage (maybe in the future). | |||
CONNECT - No defined body semantics | |||
PATHC - Body suported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PATCH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. Fixed
Not sure but don't think this has been released? Could it be please? |
Done |
If you need to mock an API designed to the JsonAPI specification you need to work with PATCH requests with a http body. This fix and tests should allow support of PATCH with body and ensure the correct information gets logged.