Allow reading params of PUT with empty body more than once#37394
Merged
Allow reading params of PUT with empty body more than once#37394
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
13 tasks
c840db3 to
f5b5f32
Compare
f5b5f32 to
a534964
Compare
Codecov Report
@@ Coverage Diff @@
## master #37394 +/- ##
=========================================
Coverage 64.57% 64.57%
- Complexity 19220 19222 +2
=========================================
Files 1268 1268
Lines 75105 75107 +2
Branches 1331 1331
=========================================
+ Hits 48496 48498 +2
Misses 26217 26217
Partials 392 392
Continue to review full report at Codecov.
|
jvillafanez
approved these changes
May 15, 2020
Member
jvillafanez
left a comment
There was a problem hiding this comment.
Code changes look fine, although I'm not sure about possible side effects.
65 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Allows read URL params of PUT request with an empty body more than once.
Missing or 0 Content-Length means that the request has an empty body and we should NOT throw LogicException while reading it.
How Has This Been Tested?
Expected
$userIdis 'fatima' in the controllerActual
$userIdisnullThe log file contains
OCS routes always get
formatparam from URL and adding one more URL param causes a logic exceptionTypes of changes
Checklist: