Skip to content

Commit 48ba407

Browse files
authored
Use Encryption::MAX_COMPATIBILITY_PAYLOAD_LENGTH
1 parent f7279b8 commit 48ba407

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WebPushServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Support\ServiceProvider;
66
use Illuminate\Support\Str;
77
use Minishlink\WebPush\WebPush;
8+
use Minishlink\WebPush\Encryption;
89

910
class WebPushServiceProvider extends ServiceProvider
1011
{
@@ -34,7 +35,7 @@ public function boot()
3435
$this->webPushAuth(), [], 30, config('webpush.client_options', [])
3536
))
3637
->setReuseVAPIDHeaders(true)
37-
->setAutomaticPadding(config('webpush.automatic_padding', 3052));
38+
->setAutomaticPadding(config('webpush.automatic_padding', Encryption::MAX_COMPATIBILITY_PAYLOAD_LENGTH));
3839
});
3940

4041
$this->app->when(WebPushChannel::class)

0 commit comments

Comments
 (0)