grenoble-gru: compare response code as string (#44052)

This commit is contained in:
Frédéric Péters 2020-06-13 23:44:06 +02:00
parent 336e5455ea
commit 82558c4cde
1 changed files with 1 additions and 1 deletions

View File

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