GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python/scripts/rest_client_patch.diff at master · euan-tilley/python Expand file tree/ Copy pathrest_client_patch.diffMore file actions 15 lines (15 loc) · 794 Bytes / Copy pathrest_client_patch.diffFile metadata and controls15 lines (15 loc) · 794 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 diff --git a/kubernetes/client/rest.py b/kubernetes/client/rest.py index 65fbe95..e174317 100644 --- a/kubernetes/client/rest.py +++ b/kubernetes/client/rest.py @@ -152,6 +152,10 @@ class RESTClientObject(object): if query_params: url += '?' + urlencode(query_params) if re.search('json', headers['Content-Type'], re.IGNORECASE): + if headers['Content-Type'] == 'application/json-patch+json': + if not isinstance(body, list): + headers['Content-Type'] = \ + 'application/strategic-merge-patch+json' request_body = None if body is not None: request_body = json.dumps(body) |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |