Skip to content

Commit ae83bd9

Browse files
authored
Merge pull request #954 from amosfolz/fix-issue#893
Update Sprunje.php
2 parents e56f5c2 + b7df1ad commit ae83bd9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

app/sprinkles/core/src/Sprunje/Sprunje.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ public function toResponse(Response $response)
188188
$result = $this->getCsv();
189189

190190
// Prepare response
191-
$settings = http_build_query($this->options);
192-
$date = Carbon::now()->format('Ymd');
193-
$response = $response->withAddedHeader('Content-Disposition', "attachment;filename=$date-{$this->name}-$settings.csv");
191+
$response = $response->withAddedHeader('Content-Disposition', "attachment;filename={$this->name}.csv");
194192
$response = $response->withAddedHeader('Content-Type', 'text/csv; charset=utf-8');
195193

196194
return $response->write($result);

0 commit comments

Comments
 (0)