{{$NEXT}}
- - Fix docs citing incorrect method name: 'serialize_bad_request' (remove leading underscore)
-
1.19 2015-02-06 09:40:02-06:00 America/Chicago
- Make LWP a test dep instead of a hard dep (Fixes GH#3, thanks Alexander
}
if ($search_path eq "Catalyst::Action::Serialize") {
- if ($content_type) {
- $c->response->header( 'Vary' => 'Content-Type' );
- } elsif ($c->request->accept_only) {
- $c->response->header( 'Vary' => 'Accept' );
+ unless( $c->response->header( 'Vary' ) ) {
+ if ($content_type) {
+ $c->response->header( 'Vary' => 'Content-Type' );
+ } elsif ($c->request->accept_only) {
+ $c->response->header( 'Vary' => 'Accept' );
+ }
}
$c->response->content_type($content_type);
}