diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-07 09:29:01 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-07 09:29:01 +0100 |
commit | cebe4bed4d5cf561944baaded80f37355d0ca5fd (patch) | |
tree | e219446f066009f883c8fab1e7b9d172abff6b8b /misc/freeswitch/scripts/http_request.lua | |
parent | 72f100c680ddcf9c36448ae3ee367eab19052adc (diff) | |
parent | df663953901e5d4192cb38e56f5b6e27d6daf3fb (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'misc/freeswitch/scripts/http_request.lua')
-rw-r--r-- | misc/freeswitch/scripts/http_request.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/http_request.lua b/misc/freeswitch/scripts/http_request.lua index 1d6f791..a74b4d8 100644 --- a/misc/freeswitch/scripts/http_request.lua +++ b/misc/freeswitch/scripts/http_request.lua @@ -29,7 +29,7 @@ end local success, result, response_headers = http.request{url = url, headers = headers }; -if success then +if success and tostring(result) == '200' then log:debug('HTTP_REQUEST - url: ', url, ', auth: ', tostring(headers.Authorization ~= nil), ', result: ', result); else log:notice('HTTP_REQUEST - url: ', url, ', auth: ', tostring(headers.Authorization ~= nil), ', result: ', result); |