Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
3f27fefd
Commit
3f27fefd
authored
11 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
fixing status code and formatting
parent
caa27824
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/private/connector/sabre/exception/entitytoolarge.php
+9
-10
9 additions, 10 deletions
lib/private/connector/sabre/exception/entitytoolarge.php
lib/private/connector/sabre/exception/unsupportedmediatype.php
+8
-8
8 additions, 8 deletions
...rivate/connector/sabre/exception/unsupportedmediatype.php
with
17 additions
and
18 deletions
lib/private/connector/sabre/exception/entitytoolarge.php
+
9
−
10
View file @
3f27fefd
<?php
/**
* EntityTooLarge
* Entity
Too
Large
*
* This exception is thrown whenever a user tries to upload a file which exceeds hard limitations
*
*/
class
OC_Connector_Sabre_Exception_EntityTooLarge
extends
Sabre_DAV_Exception
{
/**
* Returns the HTTP statuscode for this exception
*
* @return int
*/
public
function
getHTTPCode
()
{
/**
* Returns the HTTP status
code for this exception
*
* @return int
*/
public
function
getHTTPCode
()
{
//
return 413;
return
413
;
return
450
;
}
}
}
This diff is collapsed.
Click to expand it.
lib/private/connector/sabre/exception/unsupportedmediatype.php
+
8
−
8
View file @
3f27fefd
...
...
@@ -8,15 +8,15 @@
*/
class
OC_Connector_Sabre_Exception_UnsupportedMediaType
extends
Sabre_DAV_Exception
{
/**
* Returns the HTTP status code for this exception
*
* @return int
*/
public
function
getHTTPCode
()
{
/**
* Returns the HTTP status code for this exception
*
* @return int
*/
public
function
getHTTPCode
()
{
return
415
;
return
415
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment