Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
8ebe6672
Commit
8ebe6672
authored
Mar 26, 2015
by
Lukas Reschke
Browse files
Remove unneeded argument
parent
55fd0082
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/connector/sabre/filesplugin.php
View file @
8ebe6672
...
@@ -99,7 +99,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
...
@@ -99,7 +99,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
*/
*/
function
httpGet
(
RequestInterface
$request
,
ResponseInterface
$response
)
{
function
httpGet
(
RequestInterface
$request
,
ResponseInterface
$response
)
{
// Only handle valid files
// Only handle valid files
$node
=
$this
->
tree
->
getNodeForPath
(
$request
->
getPath
()
,
0
);
$node
=
$this
->
tree
->
getNodeForPath
(
$request
->
getPath
());
if
(
!
(
$node
instanceof
IFile
))
return
;
if
(
!
(
$node
instanceof
IFile
))
return
;
$response
->
addHeader
(
'Content-Disposition'
,
'attachment'
);
$response
->
addHeader
(
'Content-Disposition'
,
'attachment'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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