Explorar o código

HUE-7935 [metadata] Force put call to Navigator to send json mimetype

Romain Rigaux %!s(int64=7) %!d(string=hai) anos
pai
achega
02cd20e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/metadata/src/metadata/navigator_client.py

+ 1 - 1
desktop/libs/metadata/src/metadata/navigator_client.py

@@ -399,7 +399,7 @@ class NavigatorApi(object):
     """
     try:
       data = json.dumps(metadata)
-      return self._root.put('entities/%s' % entity_id, params=self.__params, data=data, allow_redirects=True, clear_cookies=True)
+      return self._root.put('entities/%s' % entity_id, params=self.__params, data=data, contenttype=_JSON_CONTENT_TYPE, allow_redirects=True, clear_cookies=True)
     except RestException, e:
       msg = 'Failed to update entity %s: %s' % (entity_id, str(e))
       LOG.error(msg)