fix: typo in method name in example usage (#1935)

This commit is contained in:
Michal Kleiner
2025-10-22 20:14:36 +13:00
committed by GitHub
parent 7f64673495
commit fb1f46808e

View File

@@ -64,7 +64,7 @@ To dispatch an update to connected subscribers, send an authenticated POST reque
const JWT = 'eyJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.PXwpfIGng6KObfZlcOXvcnWCJOWTFLtswGI5DZuWSK4';
$updateID = file_get_contents('https://localhost/.well-known/mercure', context: stream_context_create(['http' => [
$updateID = file_put_contents('https://localhost/.well-known/mercure', context: stream_context_create(['http' => [
'method' => 'POST',
'header' => "Content-type: application/x-www-form-urlencoded\r\nAuthorization: Bearer " . JWT,
'content' => http_build_query([