summaryrefslogtreecommitdiff
path: root/lib/nickserver
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nickserver')
-rw-r--r--lib/nickserver/request_handlers/local_email_handler.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/nickserver/request_handlers/local_email_handler.rb b/lib/nickserver/request_handlers/local_email_handler.rb
index 1f2abc2..9e8ed48 100644
--- a/lib/nickserver/request_handlers/local_email_handler.rb
+++ b/lib/nickserver/request_handlers/local_email_handler.rb
@@ -9,7 +9,6 @@ module Nickserver
def call(request)
return nil unless request.email
domain = Config.domain || request.domain
- return missing_domain_response if domain.nil? || domain == ''
email = EmailAddress.new(request.email)
return nil unless email.domain?(domain)
source.query email
@@ -17,16 +16,10 @@ module Nickserver
protected
- attr_reader :domain
-
def source
Nickserver::CouchDB::Source.new
end
- def missing_domain_response
- ErrorResponse.new "HTTP request must include a Host header."
- end
-
end
end
end