diff options
author | Azul <azul@riseup.net> | 2016-06-30 13:17:08 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-06-30 13:17:08 +0200 |
commit | 7802da3d9684c5c78d34e0154f827221803b207b (patch) | |
tree | 097be5feb7bf1f2c57bed4c46fff7c0fff1c1281 /lib | |
parent | 0491e79c4e5f16d38cf87e53290394e1eccfa2e9 (diff) |
fix host header handling and tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nickserver/request_handler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nickserver/request_handler.rb b/lib/nickserver/request_handler.rb index a54653a..f6954f1 100644 --- a/lib/nickserver/request_handler.rb +++ b/lib/nickserver/request_handler.rb @@ -61,7 +61,7 @@ module Nickserver if host_header.nil? send_error("HTTP request must include a Host header.") else - host = host_header.split(':')[1].strip.sub(/^nicknym\./, '') + host = host_header.split(':')[0].strip.sub(/^nicknym\./, '') return uid_domain == host end end |