[Bps-public-commit] rt-extension-rest2 branch, dev, updated. 7d9746a26b03d6b9a418f38696b6154ec1d44f0e

Wallace Reis wreis at bestpractical.com
Wed Jan 14 16:11:09 EST 2015


The branch, dev has been updated
       via  7d9746a26b03d6b9a418f38696b6154ec1d44f0e (commit)
      from  01097ac3f8b4ec357ffc58a3dd7ee5a07d46dfe7 (commit)

Summary of changes:
 lib/RT/Extension/REST2.pm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 7d9746a26b03d6b9a418f38696b6154ec1d44f0e
Author: Wallace Reis <wreis at bestpractical.com>
Date:   Wed Jan 14 19:10:44 2015 -0200

    rest_path has been removed, not necessary

diff --git a/lib/RT/Extension/REST2.pm b/lib/RT/Extension/REST2.pm
index 4c246e2..a26e260 100644
--- a/lib/RT/Extension/REST2.pm
+++ b/lib/RT/Extension/REST2.pm
@@ -209,15 +209,13 @@ sub to_app {
 
     RT::ConnectToDatabase();
 
-    my $rest_path = $class->rest_path;
-
     return builder {
         enable '+RT::Extension::REST2::Middleware::Log';
         enable '+RT::Extension::REST2::Middleware::Auth';
         enable 'RequestHeaders',
             set => [
                 'X-Forwarded-Script-Name' => '/',
-                'X-Traversal-Path' => $rest_path,
+                'X-Traversal-Path' => $REST_PATH,
             ];
         enable 'ReverseProxyPath';
         RT::Extension::REST2::Dispatcher->to_psgi_app;

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list