mso_contract_filter: Improve logic (#51315)

This PR improves the jsonpatch logic.
This commit is contained in:
Dag Wieers 2019-01-25 04:23:59 +01:00 committed by GitHub
parent 0acc4dafdd
commit 92b475f721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 67 additions and 59 deletions

View file

@ -180,6 +180,10 @@ class MSOModule(object):
if method is not None:
self.method = method
# If we PATCH with empty operations, return
if method == 'PATCH' and not data:
return {}
self.url = urljoin(self.baseuri, path)
if qs is not None: