Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

disable compression under debug

  • Loading branch information...
commit 02f76bd9842ef18256599b704e1db223bba10915 1 parent 787385a
authored

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 4 lib/Geo/Coder/TomTom.pm
7 lib/Geo/Coder/TomTom.pm
@@ -32,10 +32,9 @@ sub new {
32 32 $self->ua->set_my_handler(request_send => $dump_sub);
33 33 $self->ua->set_my_handler(response_done => $dump_sub);
34 34 }
35   -
36   - $self->{compress} = 1 unless exists $self->{compress};
37   - $self->ua->default_header(accept_encoding => 'gzip,deflate')
38   - if $self->{compress};
  35 + elsif (exists $self->{compress} ? $self->{compress} : 1) {
  36 + $self->ua->default_header(accept_encoding => 'gzip,deflate');
  37 + }
39 38
40 39 return $self;
41 40 }

0 comments on commit 02f76bd

Please sign in to comment.
Something went wrong with that request. Please try again.