Merge pull request #1021 from offshore/patch-1
Return decoded response in get_policy and get_cors
Florent Viard authored 5 years ago
GitHub committed 5 years ago
965 | 965 | request = self.create_request("BUCKET_LIST", bucket = uri.bucket(), |
966 | 966 | uri_params = {'policy': None}) |
967 | 967 | response = self.send_request(request) |
968 | return response['data'] | |
968 | return decode_from_s3(response['data']) | |
969 | 969 | |
970 | 970 | def set_policy(self, uri, policy): |
971 | 971 | headers = SortedDict(ignore_case = True) |
988 | 988 | request = self.create_request("BUCKET_LIST", bucket = uri.bucket(), |
989 | 989 | uri_params = {'cors': None}) |
990 | 990 | response = self.send_request(request) |
991 | return response['data'] | |
991 | return decode_from_s3(response['data']) | |
992 | 992 | |
993 | 993 | def set_cors(self, uri, cors): |
994 | 994 | headers = SortedDict(ignore_case = True) |