Merge pull request #66 from tonivdv/master

Fixed rendering issue when used with FOSRestBundle
This commit is contained in:
William Durand 2012-08-23 06:19:20 -07:00
commit 3028cb63d8

View File

@ -21,6 +21,6 @@ class ApiDocController extends Controller
$extractedDoc = $this->get('nelmio_api_doc.extractor.api_doc_extractor')->all();
$htmlContent = $this->get('nelmio_api_doc.formatter.html_formatter')->format($extractedDoc);
return new Response($htmlContent);
return new Response($htmlContent, 200, array('Content-Type' => 'text/html'));
}
}