File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686// =============================================================================
8787// Handle requests
8888// -----------------------------------------------------------------------------
89- switch ($ request ->getMethod () . $ request ->getUri ()) {
89+ switch ($ request ->getMethod () . $ request ->getRequestTarget ()) {
9090 // @CHECKME: Do we also need 'GET/.well-known/oauth-authorization-server'?
9191 case 'GET/.well-known/openid-configuration ' :
9292 $ response = $ server ->respondToWellKnownRequest ();
178178 break ;
179179
180180 default :
181+ $ response ->getBody ()->write ('404 ' );
181182 $ response = $ response ->withStatus (404 );
182183 break ;
183184}
193194 }
194195}
195196
196- echo $ response ->getBody ()-> getContents ();
197+ echo ( string ) $ response ->getBody ();
197198exit ;
198199// =============================================================================
You can’t perform that action at this time.
0 commit comments