We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f64673 commit fb1f468Copy full SHA for fb1f468
1 file changed
docs/mercure.md
@@ -64,7 +64,7 @@ To dispatch an update to connected subscribers, send an authenticated POST reque
64
65
const JWT = 'eyJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.PXwpfIGng6KObfZlcOXvcnWCJOWTFLtswGI5DZuWSK4';
66
67
-$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' => [
68
'method' => 'POST',
69
'header' => "Content-type: application/x-www-form-urlencoded\r\nAuthorization: Bearer " . JWT,
70
'content' => http_build_query([
0 commit comments