Skip to content

Commit

Permalink
add 'delete' as valid type. Does not seem to matter 1 way || other.
Browse files Browse the repository at this point in the history
  • Loading branch information
josf committed Jan 22, 2010
1 parent f3e383d commit bcfa889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/folksoQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function content_type () {
* Check if string is one of the basic request datatypes.
*/
private function is_valid_datatype ($str) {
$valid_types = array('xml', 'html', 'text');
$valid_types = array('xml', 'html', 'text', 'json');
if (in_array($str, $valid_types)) {
return true;
}
Expand Down

0 comments on commit bcfa889

Please sign in to comment.