Take also . in url for http log facility.

This commit is contained in:
Martin Edenhofer 2016-04-21 17:11:10 +02:00
parent 30b05bd991
commit 3a9f3ba5f9
2 changed files with 2 additions and 3 deletions

View file

@ -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(

View file

@ -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