Skip to content

Instantly share code, notes, and snippets.

@yko
Created January 26, 2011 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yko/241bb8e81fe0afaedc2d to your computer and use it in GitHub Desktop.
Save yko/241bb8e81fe0afaedc2d to your computer and use it in GitHub Desktop.
package Mojo::Headers;
# ...
sub connection {
my $self = shift;
return scalar $self->header(Connection => @_) if @_;
scalar($self->header('Connection'))
|| scalar($self->header('Proxy-Connection'));
}
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment