From 464588518007a6f1ffdc726c57155be78131673c 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 c6f9e932e..341e9fa7d 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", [],