From 1f1a98d7aed233d676631b9ce71dffb2cc944aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Fri, 6 Apr 2012 11:47:38 +0200 Subject: [PATCH] Properly handle HEAD request in mod_http_bind (this fixes EJAB-1538) --- src/web/mod_http_bind.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/mod_http_bind.erl b/src/web/mod_http_bind.erl index 5833d7f61..99409450c 100644 --- a/src/web/mod_http_bind.erl +++ b/src/web/mod_http_bind.erl @@ -74,6 +74,8 @@ process([], #request{method = 'GET', process([], #request{method = 'OPTIONS', data = []}) -> {200, ?OPTIONS_HEADER, []}; +process([], #request{method = 'HEAD'}) -> + {200, ?HEADER, []}; process(_Path, _Request) -> ?DEBUG("Bad Request: ~p", [_Request]), {400, ?HEADER, {xmlelement, "h1", [],