Add return_hash to pms_image_proxy API

This commit is contained in:
JonnyWong16 2018-08-23 19:12:22 -07:00
parent 1eee03fa8f
commit dd3f75f154
4 changed files with 35 additions and 21 deletions

View file

@ -596,8 +596,9 @@ General optional parameters:
return
elif self._api_cmd == 'pms_image_proxy':
cherrypy.response.headers['Content-Type'] = 'image/jpeg'
return out['response']['data']
if 'return_hash' not in self._api_kwargs:
cherrypy.response.headers['Content-Type'] = 'image/jpeg'
return out['response']['data']
if self._api_out_type == 'json':
cherrypy.response.headers['Content-Type'] = 'application/json;charset=UTF-8'