From 3a9f3ba5f942c60a5ba409cd64d82c39aa6783fe Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 21 Apr 2016 17:11:10 +0200 Subject: [PATCH] Take also . in url for http log facility. --- app/controllers/integration/sipgate_controller.rb | 3 +-- config/routes/http_log.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/integration/sipgate_controller.rb b/app/controllers/integration/sipgate_controller.rb index 8006b8635..450317584 100644 --- a/app/controllers/integration/sipgate_controller.rb +++ b/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( diff --git a/config/routes/http_log.rb b/config/routes/http_log.rb index 2dad26384..0258934e0 100644 --- a/config/routes/http_log.rb +++ b/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