Skip to content

Commit

Permalink
Undoing known code breaking changes. Not tested the related* functions.
Browse files Browse the repository at this point in the history
git-svn-id: http://doophp.googlecode.com/svn/trunk@642 eaaf3d48-7251-11de-8585-3f51e31374b7
  • Loading branch information
richard.myers@hotmail.co.uk committed Apr 19, 2011
1 parent ccd7c92 commit ab224cb
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 208 deletions.
6 changes: 4 additions & 2 deletions dooframework/controller/DooController.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ public function acceptType(){
'gif'=>'image/gif',
'form'=>'multipart/form-data',
'url-form'=>'application/x-www-form-urlencoded',
'csv'=>'text/csv'
'csv'=>'text/csv',
'tsv'=>'text/tsv'
);

$matches = array();
Expand Down Expand Up @@ -350,7 +351,8 @@ public function setContentType($type, $charset='utf-8'){
'png'=>'image/png',
'jpg'=>'image/jpeg',
'gif'=>'image/gif',
'csv'=>'text/csv'
'csv'=>'text/csv',
'tsv'=>'text/tsv'
);
if(isset($extensions[$type]))
header("Content-Type: {$extensions[$type]}; charset=$charset");
Expand Down
Loading

0 comments on commit ab224cb

Please sign in to comment.