Skip to content

Commit

Permalink
Fix host uri
Browse files Browse the repository at this point in the history
  • Loading branch information
cotrone committed Sep 27, 2023
1 parent 38fd663 commit e1b0c88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Web/WebPush/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ hostHeaders vapidKeys serverIdentification = do
uriHost :: URI -> Maybe T.Text
uriHost uri = do
regName <- uriRegName <$> uriAuthority uri
pure $ T.pack $ uriScheme uri <> regName
pure $ T.pack $ uriScheme uri <> "//" <> regName

-- Conversions among integers and bytes
-- The bytes are in network/big endian order.
Expand Down
2 changes: 1 addition & 1 deletion web-push-example/test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ subscribe testServer = do
gaveUp <- liftIO $ waitForSingleSubscription delay testServer
when gaveUp $ do
deleteSession
fail "Timed out waiting for subscription"
assertFailure "Timed out waiting for subscription"
liftIO $ putStrLn "Got subscription"
liftIO $ appSendPushNotification (testServerConfig testServer) "test"
-- liftIO $ putStrLn "Waiting for notsification"
Expand Down

0 comments on commit e1b0c88

Please sign in to comment.