Skip to content

Commit fb1f468

Browse files
fix: typo in method name in example usage (#1935)
1 parent 7f64673 commit fb1f468

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/mercure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To dispatch an update to connected subscribers, send an authenticated POST reque
6464

6565
const JWT = 'eyJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.PXwpfIGng6KObfZlcOXvcnWCJOWTFLtswGI5DZuWSK4';
6666

67-
$updateID = file_get_contents('https://localhost/.well-known/mercure', context: stream_context_create(['http' => [
67+
$updateID = file_put_contents('https://localhost/.well-known/mercure', context: stream_context_create(['http' => [
6868
'method' => 'POST',
6969
'header' => "Content-type: application/x-www-form-urlencoded\r\nAuthorization: Bearer " . JWT,
7070
'content' => http_build_query([

0 commit comments

Comments
 (0)