Skip to content

Conversation

@l-dufour
Copy link
Collaborator

WN-280,
fix(swagger): force Accept-Language header to "en" to prevent DB errors
Swagger UI was automatically sending a long Accept-Language header (e.g., "en-US,en;q=0.5") which caused an SQL error due to column size limits in the usage_logs table.

This commit overrides the Swagger UI config to force the Accept-Language header to a fixed value ("en"), avoiding the issue entirely.

Modified the published Swagger UI view in resources/views/vendor/l5-swagger/index.blade.php.

fix(swagger): force Accept-Language header to "en" to prevent DB errors
Swagger UI was automatically sending a long Accept-Language header (e.g., "en-US,en;q=0.5") which caused an SQL error due to column size limits in the usage_logs table.

This commit overrides the Swagger UI config to force the Accept-Language header to a fixed value ("en"), avoiding the issue entirely.

Modified the published Swagger UI view in resources/views/vendor/l5-swagger/index.blade.php.
@l-dufour l-dufour requested a review from joseganora March 25, 2025 14:45
@l-dufour l-dufour merged commit 0b3f406 into develop Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants