Development

#3254 (content_type setting in view.yml is ignored)

You must first sign up to be able to contribute.

Ticket #3254 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

content_type setting in view.yml is ignored

Reported by: l2k Assigned to: fabien
Priority: minor Milestone: 1.1.0 beta4
Component: view Version: 1.1.0 DEV
Keywords: Cc:
Qualification: Unreviewed

Description

The documentation states you can change the Content-Type like that in your module's view.yml:

imageSuccess:
  http_metas:
    content-type: image/jpg
  has_layout: false

This doesn't seem to work (any more) though. See attached functional tests. Two of the new tests fail:

# get /view/plain
ok 65 - status code is 200
not ok 66 - response header Content-Type is text/plain; charset=utf-8 (text/html; charset=utf-8)
#     Failed test (./test/functional/genericTest.php at line 173)
...
# get /view/image
ok 69 - status code is 200
not ok 70 - response header Content-Type is image/jpg (text/html; charset=utf-8)
#     Failed test (./test/functional/genericTest.php at line 182)

Attachments

contenttype.diff (2.8 kB) - added by l2k on 04/01/08 19:36:14.
new tests

Change History

04/01/08 19:36:14 changed by l2k

  • attachment contenttype.diff added.

new tests

04/17/08 05:25:25 changed by fabien

  • milestone set to 1.1.0 beta4.

04/17/08 05:44:41 changed by fabien

(In [8496]) added tests to check changing the content type from view.yml (refs #3254, patch from l2k)

04/17/08 08:06:36 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

in r8497