Needlworks / Textcube

Textcube : Brand yourself! / Personalized web publishing platform with multi-user support
http://www.textcube.org
Other
208 stars 55 forks source link

/plugin/ URL binding return 404 but body is fine. #1695

Closed outsideris closed 10 years ago

outsideris commented 10 years ago

PluginURLbinding return body but status code is 404 NOT FOUND.

If plugin use the plugin-url-binding such like '/plugin/GMapCustomInsert/' for Google Map Plugin, http request is like below.

Request URL:http://blog.outsider.ne.kr/plugin/GMapCustomInsert/
Request Method:GET
Status Code:404 Not Found

But body is exist and page is displayed correctly. And if I remove if (!headers_sent()) Respond::NotFoundPage(); codes in interface/blog/plugin.php, the request return 200 OK.

I use nignx and php-fpm and TextCube 1.9.3.

inureyes commented 10 years ago

Plugin-specific URL handler should send header information to clients. So GoogleMap plugin is fixed. :+1:

outsideris commented 10 years ago

:+1: Thank you. I'm wating v1.10.

inureyes commented 10 years ago

:+1: