File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ protected function prepare(array $notifications): array
263263 $ localPublicKey = $ encrypted ['localPublicKey ' ];
264264
265265 $ headers = [
266- 'Content-Type ' => ' application/octet-stream ' ,
266+ 'Content-Type ' => $ options [ ' contentType ' ] ,
267267 'Content-Encoding ' => $ contentEncoding ,
268268 ];
269269
@@ -384,6 +384,7 @@ public function setDefaultOptions(array $defaultOptions): WebPush
384384 $ this ->defaultOptions ['topic ' ] = $ defaultOptions ['topic ' ] ?? null ;
385385 $ this ->defaultOptions ['batchSize ' ] = $ defaultOptions ['batchSize ' ] ?? 1000 ;
386386 $ this ->defaultOptions ['requestConcurrency ' ] = $ defaultOptions ['requestConcurrency ' ] ?? 100 ;
387+ $ this ->defaultOptions ['contentType ' ] = $ defaultOptions ['contentType ' ] ?? 'application/octet-stream ' ;
387388
388389
389390 return $ this ;
You can’t perform that action at this time.
0 commit comments