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

Guzzle - Content-Type is not always provided #5272

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Conversation

Gustry
Copy link
Member

@Gustry Gustry commented Jan 27, 2025

Follow up from #4998

2025-01-27 16:09:19	172.18.0.1	error	The HTTP request ended with an error. HTTP code 422. → http://map:8080/ows/?map=tests%2Frasters%2Eqgs&request=getcapabilities&service=WFS&version=1%2E0%2E0&Lizmap%5FUser=admin&Lizmap%5FUser%5FGroups=admins&Lizmap%5FOverride%5FFilter=1
[2]	Undefined array key 0
  /srv/lzm/lizmap/modules/lizmap/lib/Request/Proxy.php	470

I haven't really checked what to add instead...
https://stackoverflow.com/questions/1176022/unknown-file-type-mime

@Gustry Gustry added php Pull requests that update Php code backport release_3_9 labels Jan 27, 2025
@Gustry Gustry requested a review from rldhont January 27, 2025 15:29
@github-actions github-actions bot added this to the 3.10.0 milestone Jan 27, 2025
Copy link
Collaborator

@rldhont rldhont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PSR responseInterface has a hasHeader method

lizmap/modules/lizmap/lib/Request/Proxy.php Outdated Show resolved Hide resolved
lizmap/modules/lizmap/lib/Request/Proxy.php Outdated Show resolved Hide resolved
@Gustry Gustry merged commit 9425098 into 3liz:master Jan 27, 2025
16 checks passed
@Gustry Gustry deleted the content-type branch January 27, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_3_9 php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants