Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix getallheaders #1568

Open
wants to merge 1 commit into
base: http-foundation-replace
Choose a base branch
from

Conversation

elguitarraverde
Copy link
Contributor

me he dado cuenta a pasar los tests.

la funcion getallheaders() solo se encuentra en algunos entornos(Works in the Apache, FastCGI, CLI, and FPM webservers)

he usado una solución que proponen en php.net pero creo que es muy básica:
https://www.php.net/manual/en/function.getallheaders.php#84262

Os pongo dos soluciones que creo que con mas completas:

Symfony:
https://github.com/symfony/http-foundation/blob/344a18f75343561ce58581b0735063350a506d01/ServerBag.php#L26

paquete de ralouphie:
https://github.com/ralouphie/getallheaders/blob/120b605dfeb996808c31b6477290a714d356e822/src/getallheaders.php#L10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant