summaryrefslogtreecommitdiff
path: root/actions/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/api.php')
-rw-r--r--actions/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/api.php b/actions/api.php
index badd4a42a..6a420c95e 100644
--- a/actions/api.php
+++ b/actions/api.php
@@ -38,12 +38,12 @@ class ApiAction extends Action {
$cmdext = explode('.', $argument);
$this->api_arg = $cmdext[0];
$this->api_method = $method;
- $this->content_type = $cmdext[1];
+ $this->content_type = strtolower($cmdext[1]);
} else {
#content type will be an extension on the method
$cmdext = explode('.', $method);
$this->api_method = $cmdext[0];
- $this->content_type = $cmdext[1];
+ $this->content_type = strtolower($cmdext[1]);
}
# common_debug("apiaction = $this->api_action, method = $this->api_method, argument = $this->api_arg, ctype = $this->content_type");