summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuriy Gerasimov2013-06-21 13:50:50 (GMT)
committer Yuriy Gerasimov2013-06-21 13:50:50 (GMT)
commit353c037832ca9412055fe66bd8888af78ddd21d9 (patch)
tree8ad4f00efda2d3d3142778feac6acb59ae238acf
parent4e4911a19e547f54017edefd4a5fe698d6056aa1 (diff)
Move documentation in resolveController().
-rwxr-xr-xservers/rest_server/includes/RESTServer.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/servers/rest_server/includes/RESTServer.inc b/servers/rest_server/includes/RESTServer.inc
index 3debab3..4bb7aa1 100755
--- a/servers/rest_server/includes/RESTServer.inc
+++ b/servers/rest_server/includes/RESTServer.inc
@@ -481,12 +481,13 @@ class RESTServer {
$operation_type = NULL;
$operation = NULL;
- // We do not group "if" conditions on purpose for better readability.
-
+ // For any HEAD request return response "200 OK".
if ($request_method == 'HEAD') {
return services_error('OK', 200);
}
+ // We do not group "if" conditions on purpose for better readability.
+
// 'index' method.
if ( $request_method == 'GET'
&& isset($resource['operations']['index'])
@@ -588,7 +589,6 @@ class RESTServer {
$controller['file'] = $resource['file'];
}
-
return $controller;
}