File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ public static function getHeaders()
181181
182182 // headers
183183 $ headers = [
184+ 'Accept ' => 'application/json ' ,
184185 'X-Fresns-App-Id ' => $ keyConfig ['appId ' ],
185186 'X-Fresns-Client-Platform-Id ' => $ keyConfig ['platformId ' ],
186187 'X-Fresns-Client-Version ' => fs_theme ('version ' ),
Original file line number Diff line number Diff line change 1515use Illuminate \Http \JsonResponse ;
1616use Illuminate \Http \RedirectResponse ;
1717use Illuminate \Http \Request ;
18+ use Illuminate \Support \Arr ;
1819use Illuminate \Support \Facades \Response ;
1920use Illuminate \Support \Str ;
2021
@@ -23,7 +24,7 @@ class ApiController extends Controller
2324 // make access token
2425 public function makeAccessToken (): JsonResponse
2526 {
26- $ headers = ApiHelper::getHeaders ();
27+ $ headers = Arr:: except ( ApiHelper::getHeaders (), [ ' Accept ' ] );
2728
2829 $ accessToken = urlencode (base64_encode (json_encode ($ headers )));
2930
You can’t perform that action at this time.
0 commit comments