Browse Source

Take also . in url for http log facility.

Martin Edenhofer 9 years ago
parent
commit
3a9f3ba5f9
2 changed files with 2 additions and 3 deletions
  1. 1 2
      app/controllers/integration/sipgate_controller.rb
  2. 1 1
      config/routes/http_log.rb

+ 1 - 2
app/controllers/integration/sipgate_controller.rb

@@ -79,8 +79,7 @@ class Integration::SipgateController < ApplicationController
       content = xml.Response('onHangup' => in_url, 'onAnswer' => in_url)
     end
 
-    send_data content,
-              type: 'application/xml; charset=UTF-8;'
+    send_data content, type: 'application/xml; charset=UTF-8;'
 
     # notify about outbound call
     Sessions.broadcast(

+ 1 - 1
config/routes/http_log.rb

@@ -2,7 +2,7 @@ Zammad::Application.routes.draw do
   api_path = Rails.configuration.api_path
 
   match api_path + '/http_logs',            to: 'http_logs#index',   via: :get
-  match api_path + '/http_logs/:facility',  to: 'http_logs#index',   via: :get
+  match api_path + '/http_logs/:facility',  to: 'http_logs#index',   via: :get, constraints: { facility: /.*/ }
   match api_path + '/http_logs',            to: 'http_logs#create',  via: :post
 
 end