From ac2d811a469b7109f34065bf13e31a5b5954dd0b Mon Sep 17 00:00:00 2001 From: zach Date: Wed, 16 Jul 2008 18:02:23 -0400 Subject: Twitter-compatible API - code cleanup darcs-hash:20080716220223-ca946-e3eed117cded61eb9c2d2805fd07758f883fb85b.gz --- actions/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions/api.php') 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"); -- cgit v1.2.3-54-g00ecf