Made it so internal API requests wouldn't make it into access log.
There is a new ENV variable WS_API_LOG_INTERNAL to enable it if you desire, it's mostly helpful for development. Internal API requests no longer require API key. Migrated system:env to use the API in effort to reduce code duplicating There going to be more code cleaning later on once we migrate the majority of the code to the API.
This commit is contained in:
@@ -170,11 +170,10 @@ final class Index
|
||||
|
||||
$stream->rewind();
|
||||
|
||||
return new Response(
|
||||
status: HTTP_STATUS::HTTP_OK->value,
|
||||
headers: ['Content-Type' => 'text/plain'],
|
||||
body: $stream
|
||||
);
|
||||
return new Response(status: HTTP_STATUS::HTTP_OK->value, headers: [
|
||||
'Content-Type' => 'text/plain',
|
||||
'X-No-AccessLog' => '1'
|
||||
], body: $stream);
|
||||
}
|
||||
|
||||
private function download(string $filePath): iResponse
|
||||
|
||||
Reference in New Issue
Block a user