Changeset 9a7a2027dffd0153012a872c18fb583cf26e6d90

Show
Ignore:
Timestamp:
06/27/11 14:51:25 (7 years ago)
Author:
Thom May <thom@digital-science.com>
git-committer:
Thom May <thom@digital-science.com> 1309186285 +0100
git-parent:

[4adb4fbfac10ac60af455652f1c9b373fba88624]

git-author:
Thom May <thom@digital-science.com> 1309186285 +0100
Message:

Make the url regex only check for http

Address @postwait's comment in https://github.com/thommay/reconnoiter/commit/4adb4fbfac10ac60af455652f1c9b373fba88624#commitcomment-449594
The module doesn't currently implement https, so don't act like it does.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules-lua/noit/module/nginx.lua

    r4adb4fb r9a7a202  
    9393function initiate(module, check) 
    9494  local url = check.config.url 
    95   local schema, host, port, uri = string.match(url, "^(https?)://([^:/]*):?([0-9]*)(/?.*)$"); 
     95  local host, port, uri = string.match(url, "^http://([^:/]*):?([0-9]*)(/?.*)$"); 
    9696 
    9797  local good = false