lelafav502 commited on
Commit
ddc9901
·
verified ·
1 Parent(s): 5635991

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -82,7 +82,15 @@ def get_upload_url(uuid_value):
82
  # Define the headers with the required values
83
  headers = {
84
  "Authorization": "Bearer YOUR_ACCESS_TOKEN", # Replace with the correct Bearer Token if needed
85
- "Content-Type": "application/json"
 
 
 
 
 
 
 
 
86
  }
87
 
88
  # Sending GET request to Firebase Storage
 
82
  # Define the headers with the required values
83
  headers = {
84
  "Authorization": "Bearer YOUR_ACCESS_TOKEN", # Replace with the correct Bearer Token if needed
85
+ "Content-Type": "application/x-www-form-urlencoded", # Required content type
86
+ "X-Firebase-Storage-Version": "Android/24.43.37 (100400-693941914)",
87
+ "X-Firebase-Gmpid": "1:873188155690:android:1fd5d2e7b355e982807e53",
88
+ "X-Goog-Upload-Command": "start",
89
+ "X-Goog-Upload-Protocol": "resumable",
90
+ "X-Goog-Upload-Header-Content-Type": "application/octet-stream",
91
+ "User-Agent": "Dalvik/2.1.0 (Linux; U; Android 10; Android SDK built for arm64 Build/QSR1.210802.001)",
92
+ "Connection": "Keep-Alive",
93
+ "Accept-Encoding": "gzip, deflate, br"
94
  }
95
 
96
  # Sending GET request to Firebase Storage