Update HttpServer.swift

solve compiler error : 'NSTextCheckingResult?' does not have a member named 'rangeAtIndex'