Feature Request #3767

Response::send_headers() should respect the CLI interface

Added by Sam de Freyssinet over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:02/17/2011
Priority:NormalDue date:
Assignee:Sam de Freyssinet% Done:

100%

Category:Core
Target version:v3.1.2
Resolution:fixed Points:

Description

Response::send_headers() method should not try and set headers if Kohana::$is_cli is TRUE. Headers cannot be sent in CLI mode, and it also makes testing the send_header() and associated methods very difficult.

Associated revisions

Revision bf0175f6
Added by Sam de Freyssinet over 3 years ago

Fixes #3767, headers are only sent by PHP if Kohana::$is_cli is FALSE

Skipped tests can now be run again as normal

History

#1 Updated by Sam de Freyssinet over 3 years ago

  • Resolution set to fixed

#2 Updated by Sam de Freyssinet over 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:bf0175f6cd98a42d977c9deb244148c5c005825a.

Also available in: Atom PDF