aacotroneo / laravel-saml2

A Laravel 5 package for Saml2 integration as a SP (service provider) based on the simple OneLogin toolkit
MIT License
564 stars 237 forks source link

getMetaData adds empty new lines #267

Open tareqGhosh opened 3 months ago

tareqGhosh commented 3 months ago
    $metadata = $saml2Auth->getMetadata();

    return response($metadata, 200, ['Content-Type' => 'application/xml']);

Is adding empty 3 lines when I deploy my code in the server, its not happening locally... why?

Server response:


<?xml version="1.0"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"

Local response:

<?xml version="1.0"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"

Did anyone face this issue?