Showing 2 changed files with 9 additions and 2 deletions
+1 -1
.gitignore
... ...
@@ -21,10 +21,10 @@ script/hypnotoad.pid
21 21
 script/hypnotoad.pid
22 22
 extlib/*
23 23
 gitprep.my.conf
24
+data/*
24 25
 data/rep/*
25 26
 data/work/*
26 27
 !data/work/.gitignore
27
-data/gitprep.db
28 28
 !data/rep/.gitignore
29 29
 setup/log/*
30 30
 !setup/log/.gitignore
+8 -1
lib/Gitprep.pm
... ...
@@ -496,7 +496,14 @@ sub startup {
496 496
       $c->app->log->warn("X-Forwarded-HTTPS header is DEPRECATED! use X-Forwarded-Proto instead.");
497 497
     }
498 498
   });
499
-  
499
+
500
+  # Set auto_decompress for Smart HTTP(I don't know this reasone)
501
+  $self->hook('after_build_tx' => sub {
502
+    my ($tx, $app) = @_;
503
+    
504
+    $tx->req->content->auto_decompress(1);
505
+  });
506
+
500 507
   # Reverse proxy support
501 508
   my $reverse_proxy_on = $self->config->{reverse_proxy}{on};
502 509
   my $path_depth = $self->config->{reverse_proxy}{path_depth};