grenoble-gru: compare response code as string (#44052)
This commit is contained in:
parent
336e5455ea
commit
82558c4cde
|
@ -213,7 +213,7 @@ class GrenobleGRU(BaseResource):
|
|||
# file parameters should be urlencoded and sent as 'piece_jointe' param
|
||||
payload = {'dem_tiers_id': demand_id, 'piece_jointe': urlencode(file_data)}
|
||||
response = self.request('ws_update_demandePJ.php', payload)
|
||||
if response.content == '01':
|
||||
if response.text == '01':
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue