Changeset 2119

Show
Ignore:
Timestamp:
12/21/06 10:21:03
Author:
miyagawa
Message:

fix no_x_json_header check

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Catalyst-View-JSON/trunk/Changes

    r2118 r2119  
    11Revision history for Perl extension Catalyst::View::JSON 
     2 
     30.14  Wed Dec 20 17:20:26 PST 2006 
     4        - Oops, no_x_json_header in 0.13 was broken 
    25 
    360.13  Wed Dec 20 17:12:32 PST 2006 
  • Catalyst-View-JSON/trunk/lib/Catalyst/View/JSON.pm

    r2118 r2119  
    9494    } 
    9595 
    96     if ($c->req->header('X-Prototype-Version') && $self->no_x_json_header) { 
     96    if ($c->req->header('X-Prototype-Version') && !$self->no_x_json_header) { 
    9797        $c->res->header('X-JSON' => 'eval("("+this.transport.responseText+")")'); 
    9898    }