summaryrefslogtreecommitdiff
path: root/actions/api.php
diff options
context:
space:
mode:
authorzach <zach@copley.name>2008-07-16 18:02:23 -0400
committerzach <zach@copley.name>2008-07-16 18:02:23 -0400
commitac2d811a469b7109f34065bf13e31a5b5954dd0b (patch)
tree3be7a5199abbba30763f5cf8e6e64243137b9557 /actions/api.php
parentfba25b0d9810dac55a27feed173437a2a2f61364 (diff)
Twitter-compatible API - code cleanup
darcs-hash:20080716220223-ca946-e3eed117cded61eb9c2d2805fd07758f883fb85b.gz
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");