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
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: