@@ -21,9 +21,9 @@ defmodule WebPushElixirTest do
2121 assert [
2222 { "Authorization" , "WebPush " <> << _jwt :: binary >> } ,
2323 { "Content-Encoding" , "aesgcm" } ,
24- { "Crypto-Key" , "dh =" <> << _vapid_public_key :: binary >> } ,
24+ { "Crypto-Key" , "p256ecdsa =" <> << _vapid_public_key :: binary >> } ,
2525 { "Encryption" , "salt=" <> << _salt :: binary >> } ,
26- { "TTL" , "0 " }
26+ { "TTL" , "60 " }
2727 ] = response . request . headers
2828
2929 assert << _body :: binary >> = response . request . body
@@ -34,7 +34,7 @@ defmodule WebPushElixirTest do
3434
3535 assert [
3636 { "cache-control" , "max-age=0, private, must-revalidate" } ,
37- { "content-length" , "348 " } ,
37+ { "content-length" , "611 " } ,
3838 { "content-type" , "text/html; charset=utf-8" } ,
3939 { "date" , << _date :: binary >> } ,
4040 { "server" , "Cowboy" }
@@ -58,7 +58,7 @@ defmodule WebPushElixirTest do
5858
5959 assert [
6060 { "cache-control" , "max-age=0, private, must-revalidate" } ,
61- { "content-length" , "784 " } ,
61+ { "content-length" , "903 " } ,
6262 { "content-type" , "application/x-javascript" } ,
6363 { "date" , << _date :: binary >> } ,
6464 { "server" , "Cowboy" }
@@ -70,7 +70,7 @@ defmodule WebPushElixirTest do
7070
7171 assert [
7272 { "cache-control" , "max-age=0, private, must-revalidate" } ,
73- { "content-length" , "208 " } ,
73+ { "content-length" , "262 " } ,
7474 { "content-type" , "application/x-javascript" } ,
7575 { "date" , << _date :: binary >> } ,
7676 { "server" , "Cowboy" }
0 commit comments