Skip to content

Commit 74636de

Browse files
goaroundjoostdebruijn
authored andcommitted
Use Encryption::MAX_COMPATIBILITY_PAYLOAD_LENGTH
1 parent 99c4a28 commit 74636de

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
{
@@ -30,7 +31,7 @@ public function boot(): void
3031
$this->webPushAuth(), [], 30, config('webpush.client_options', [])
3132
))
3233
->setReuseVAPIDHeaders(true)
33-
->setAutomaticPadding(config('webpush.automatic_padding', 3052));
34+
->setAutomaticPadding(config('webpush.automatic_padding', Encryption::MAX_COMPATIBILITY_PAYLOAD_LENGTH));
3435
});
3536

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

0 commit comments

Comments
 (0)