Response header missing

Created on 15 October 2019, over 4 years ago
Updated 19 October 2023, 8 months ago

Hi,

I'm using your CAS server module to build a standard PHP CAS client, it's very handy, thanks for the module :-)

While testing the module, I wasn't able to login because the Content-Type header is not set on the Response when returning XML.

In TicketValidationController.php,

All the calls:

    return Response::create($response_text, 200);

Should be replaced with:

    return Response::create($response_text, 200, ['Content-Type' => 'text/xml']);

This is a small details but very important knowing that a CAS server may return either XML or JSON.

If needed I can submit a pull request.

Thanks!

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Pol Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024