Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
Proxy
Commits
fe0beed3
Commit
fe0beed3
authored
Aug 19, 2021
by
Dominik Hebeler
Browse files
Merge branch '30-pdf-download-not-working' into 'master'
Resolve "PDF Download not working" Closes
#30
See merge request
!29
parents
aacd4848
2093068e
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/DownloadController.php
View file @
fe0beed3
...
...
@@ -57,7 +57,7 @@ class DownloadController extends Controller
# From the headers we need to remove the first Element since it's the status code:
$status
=
$headers
[
0
];
$status
=
intval
(
preg_split
(
"/\s+/si"
,
$status
)[
1
]);
Arr
::
forget
(
$headers
,
0
);
\
Arr
::
forget
(
$headers
,
0
);
# Add the Filename if it's not set:
if
(
!
isset
(
$headers
[
"Content-Disposition"
]))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment