Ticket #629 (closed defect: fixed)
createForwardContainer() doesn't honor the output type completly.
| Reported by: | Manuel Giesa | Owned by: | david |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.1 |
| Component: | response | Version: | 0.11.0 |
| Severity: | major | Keywords: | |
| Cc: | Patch attached: |
Description
If i use a forward container to forward to another output type, the http-headers aren't set for the target output type and the old ones are kept. In the following case the 404 XML will be delivered as application/octet-stream.
public function executeBinary(AgaviRequestDataHolder $rd) {
return $this->createForwardContainer(AgaviConfig::get('action.error_404.module'),
AgaviConfig::get('action.error_404.action'), array(), 'xml');
}
Releveant settings for both output types: xml:
<parameter name="Content-Type">application/xml; charset=UTF-8</parameter>
binary:
<parameter name="Content-Type">application/octet-stream</parameter>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

