diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2012-04-06 11:47:38 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2012-04-06 11:47:38 +0200 |
commit | 1f1a98d7aed233d676631b9ce71dffb2cc944aec (patch) | |
tree | 55fa76d6ee4c7e9cd26f7fba669861aad75b8ebe /src | |
parent | Get rid of duplicated code (diff) |
Properly handle HEAD request in mod_http_bind (this fixes EJAB-1538)
Diffstat (limited to 'src')
-rw-r--r-- | src/web/mod_http_bind.erl | 2 |
1 files changed, 2 insertions, 0 deletions
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", [], |