changeset 1331:02fe660e7748

minor fix
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 11 Feb 2019 02:17:41 -0700
parents f41919741100
children 11b7e11f9ed5
files src/luan/webserver/handlers/DomainHandler.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/webserver/handlers/DomainHandler.java	Mon Feb 11 01:38:55 2019 -0700
+++ b/src/luan/webserver/handlers/DomainHandler.java	Mon Feb 11 02:17:41 2019 -0700
@@ -71,6 +71,8 @@
 
 	public Response handle(Request request) {
 		String host = (String)request.headers.get("host");
+		if( host == null )
+			return null;
 		int i = host.indexOf(':');
 		String domain = i == -1 ? host : host.substring(0,i);
 		Handler handler = getHandler(domain);