|
@@ -3,6 +3,7 @@
|
|
|
namespace Mpociot\ApiDoc\Tools\ResponseStrategies;
|
|
|
|
|
|
use Dingo\Api\Dispatcher;
|
|
|
+use Illuminate\Support\Str;
|
|
|
use Illuminate\Http\Request;
|
|
|
use Illuminate\Http\Response;
|
|
|
use Illuminate\Routing\Route;
|
|
@@ -330,7 +331,7 @@ class ResponseCallStrategy
|
|
|
$prefix = 'HTTP_';
|
|
|
foreach ($headers as $name => $value) {
|
|
|
$name = strtr(strtoupper($name), '-', '_');
|
|
|
- if (! starts_with($name, $prefix) && $name !== 'CONTENT_TYPE') {
|
|
|
+ if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
|
|
|
$name = $prefix.$name;
|
|
|
}
|
|
|
$server[$name] = $value;
|