Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Commit 9b5b4e0

Browse files
committed
Merge pull request #374 from rural21st/patch-7
Update RestController.class.php
2 parents 2189bd5 + 2f464ad commit 9b5b4e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ThinkPHP/Library/Think/Controller/RestController.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function __call($method, $args)
104104
protected function getAcceptType()
105105
{
106106
$type = array(
107+
'html' => 'text/html,application/xhtml+xml,*/*',
107108
'xml' => 'application/xml,text/xml,application/x-xml',
108109
'json' => 'application/json,text/x-json,application/jsonrequest,text/json',
109110
'js' => 'text/javascript,application/javascript,application/x-javascript',
@@ -117,7 +118,6 @@ protected function getAcceptType()
117118
'jpg' => 'image/jpg,image/jpeg,image/pjpeg',
118119
'gif' => 'image/gif',
119120
'csv' => 'text/csv',
120-
'html' => 'text/html,application/xhtml+xml,*/*',
121121
);
122122

123123
foreach ($type as $key => $val) {

0 commit comments

Comments
 (0)