Skip to content

Commit fdd5b3e

Browse files
author
LDFOUR\luisd
committed
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.
1 parent 9900a81 commit fdd5b3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/views/vendor/l5-swagger/index.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
135135
requestInterceptor: function(request) {
136136
request.headers['X-CSRF-TOKEN'] = '{{ csrf_token() }}';
137+
request.headers['Accept-Language'] = 'en';
137138
return request;
138139
},
139140

0 commit comments

Comments
 (0)