Skip to content

Commit

Permalink
fix: Removed apple auth headers from screenshot upload api
Browse files Browse the repository at this point in the history
  • Loading branch information
jawad-khan committed Sep 3, 2024
1 parent 5ea69a6 commit fb50782
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecommerce/extensions/iap/api/v1/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ def upload_screenshot_of_inapp_purchase(in_app_purchase_id, headers):
screenshot_id = response['data']['id']
url = response['data']['attributes']['uploadOperations'][0]['url']
with staticfiles_storage.open('images/mobile_ios_product_screenshot.png', 'rb') as image:
img_headers = headers.copy()
img_headers['Content-Type'] = 'image/png'
img_headers = {'Content-Type': 'image/png'}
response = request_connect_store(url, headers=img_headers, data=image.read(), method='put')

if response.status_code != 200:
Expand Down

0 comments on commit fb50782

Please sign in to comment.