phpOp/index.php handle_client_registration function

Issue #9 new
ullasjos created an issue

at #1627, there is a conditional statement against $headers['content-type'], the $headers are essentially $_SERVER variables . And there is no $_SERVER['CONTENT-TYPE'], its $_SERVER['CONTENT_TYPE'].

So that line should be // if(!$headers['content_type'] || $headers['content_type'] != 'application/json') { with a "_" instead "-".

I was getting 'invalid_client_metadata', 'Unexpected content type' error, but after applying the above fix, it seems working.

Note: I may wrong, let me know what you guys think.

Comments (2)

  1. Log in to comment