diff --git a/uvicorn/protocols/http/h11_impl.py b/uvicorn/protocols/http/h11_impl.py
index ab9cdaf..598b5e0 100644
--- a/uvicorn/protocols/http/h11_impl.py
+++ b/uvicorn/protocols/http/h11_impl.py
@@ -465,7 +465,10 @@ class RequestResponseCycle:
             more_body = message.get("more_body", False)
 
             # Write response body
-            event = h11.Data(data=body)
+            if self.scope['method'] == "HEAD":
+                event = h11.Data()
+            else:
+                event = h11.Data(data=body)
             output = self.conn.send(event)
             self.transport.write(output)
 
diff --git a/uvicorn/protocols/http/httptools_impl.py b/uvicorn/protocols/http/httptools_impl.py
index cfd7887..8a593fc 100644
--- a/uvicorn/protocols/http/httptools_impl.py
+++ b/uvicorn/protocols/http/httptools_impl.py
@@ -467,7 +467,9 @@ class RequestResponseCycle:
             more_body = message.get("more_body", False)
 
             # Write response body
-            if self.chunked_encoding:
+            if self.scope['method'] == "HEAD":
+                self.expected_content_length = 0
+            elif self.chunked_encoding:
                 content = [b"%x\r\n" % len(body), body, b"\r\n"]
                 if not more_body:
                     content.append(b"0\r\n\r\n")

Drop response body on HEAD requests
diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py
index dd4b62c..4ec0a9b 100644
--- a/tests/protocols/test_http.py
+++ b/tests/protocols/test_http.py
@@ -48,6 +48,8 @@ class Response:
 
 SIMPLE_GET_REQUEST = b"\r\n".join([b"GET / HTTP/1.1", b"Host: example.org", b"", b""])
 
+SIMPLE_HEAD_REQUEST = b"\r\n".join([b"HEAD / HTTP/1.1", b"Host: example.org", b"", b""])
+
 SIMPLE_POST_REQUEST = b"\r\n".join(
     [
         b"POST / HTTP/1.1",
@@ -175,6 +177,18 @@ def test_get_request(protocol_cls):
     assert b"Hello, world" in protocol.transport.buffer
 
 
+@pytest.mark.parametrize("protocol_cls", [HttpToolsProtocol, H11Protocol])
+def test_head_request(protocol_cls):
+    def app(scope):
+        return Response("Hello, world", media_type="text/plain")
+
+    protocol = get_connected_protocol(app, protocol_cls)
+    protocol.data_received(SIMPLE_HEAD_REQUEST)
+    protocol.loop.run_one()
+    assert b"HTTP/1.1 200 OK" in protocol.transport.buffer
+    assert b"Hello, world" not in protocol.transport.buffer
+
+
 @pytest.mark.parametrize("protocol_cls", [HttpToolsProtocol, H11Protocol])
 def test_post_request(protocol_cls):
     class App:

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest
apt-get update apt-get install -y gcc
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
click==8.1.8
codecov==2.1.13
coverage==7.2.7
exceptiongroup==1.2.2
h11==0.14.0
httptools==0.6.0
idna==3.10
importlib-metadata==6.7.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
pytest-cov==4.1.0
requests==2.31.0
tomli==2.0.1
typing_extensions==4.7.1
urllib3==2.0.7
-e git+https://github.com/encode/uvicorn.git@5e2da780ae775dbe963066554d3bb230a41c7f9c#egg=uvicorn
uvloop==0.18.0
websockets==11.0.3
zipp==3.15.0

name: uvicorn
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - charset-normalizer==3.4.1
      - click==8.1.8
      - codecov==2.1.13
      - coverage==7.2.7
      - exceptiongroup==1.2.2
      - h11==0.14.0
      - httptools==0.6.0
      - idna==3.10
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - packaging==24.0
      - pluggy==1.2.0
      - pytest==7.4.4
      - pytest-cov==4.1.0
      - requests==2.31.0
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - urllib3==2.0.7
      - uvloop==0.18.0
      - websockets==11.0.3
      - zipp==3.15.0
prefix: /opt/conda/envs/uvicorn

tests/protocols/test_http.py::test_head_request[HttpToolsProtocol]
tests/protocols/test_http.py::test_get_request[HttpToolsProtocol] tests/protocols/test_http.py::test_get_request[H11Protocol] tests/protocols/test_http.py::test_head_request[H11Protocol] tests/protocols/test_http.py::test_post_request[HttpToolsProtocol] tests/protocols/test_http.py::test_post_request[H11Protocol] tests/protocols/test_http.py::test_keepalive[HttpToolsProtocol] tests/protocols/test_http.py::test_keepalive[H11Protocol] tests/protocols/test_http.py::test_keepalive_timeout[HttpToolsProtocol] tests/protocols/test_http.py::test_keepalive_timeout[H11Protocol] tests/protocols/test_http.py::test_close[HttpToolsProtocol] tests/protocols/test_http.py::test_close[H11Protocol] tests/protocols/test_http.py::test_chunked_encoding[HttpToolsProtocol] tests/protocols/test_http.py::test_chunked_encoding[H11Protocol] tests/protocols/test_http.py::test_pipelined_requests[HttpToolsProtocol] tests/protocols/test_http.py::test_pipelined_requests[H11Protocol] tests/protocols/test_http.py::test_undersized_request[HttpToolsProtocol] tests/protocols/test_http.py::test_undersized_request[H11Protocol] tests/protocols/test_http.py::test_oversized_request[HttpToolsProtocol] tests/protocols/test_http.py::test_oversized_request[H11Protocol] tests/protocols/test_http.py::test_large_post_request[HttpToolsProtocol] tests/protocols/test_http.py::test_large_post_request[H11Protocol] tests/protocols/test_http.py::test_invalid_http[HttpToolsProtocol] tests/protocols/test_http.py::test_invalid_http[H11Protocol] tests/protocols/test_http.py::test_app_exception[HttpToolsProtocol] tests/protocols/test_http.py::test_app_exception[H11Protocol] tests/protocols/test_http.py::test_app_init_exception[HttpToolsProtocol] tests/protocols/test_http.py::test_app_init_exception[H11Protocol] tests/protocols/test_http.py::test_exception_during_response[HttpToolsProtocol] tests/protocols/test_http.py::test_exception_during_response[H11Protocol] tests/protocols/test_http.py::test_no_response_returned[HttpToolsProtocol] tests/protocols/test_http.py::test_no_response_returned[H11Protocol] tests/protocols/test_http.py::test_partial_response_returned[HttpToolsProtocol] tests/protocols/test_http.py::test_partial_response_returned[H11Protocol] tests/protocols/test_http.py::test_duplicate_start_message[HttpToolsProtocol] tests/protocols/test_http.py::test_duplicate_start_message[H11Protocol] tests/protocols/test_http.py::test_missing_start_message[HttpToolsProtocol] tests/protocols/test_http.py::test_missing_start_message[H11Protocol] tests/protocols/test_http.py::test_message_after_body_complete[HttpToolsProtocol] tests/protocols/test_http.py::test_message_after_body_complete[H11Protocol] tests/protocols/test_http.py::test_value_returned[HttpToolsProtocol] tests/protocols/test_http.py::test_value_returned[H11Protocol] tests/protocols/test_http.py::test_early_disconnect[HttpToolsProtocol] tests/protocols/test_http.py::test_early_disconnect[H11Protocol] tests/protocols/test_http.py::test_early_response[HttpToolsProtocol] tests/protocols/test_http.py::test_early_response[H11Protocol] tests/protocols/test_http.py::test_read_after_response[HttpToolsProtocol] tests/protocols/test_http.py::test_read_after_response[H11Protocol] tests/protocols/test_http.py::test_http10_request[HttpToolsProtocol] tests/protocols/test_http.py::test_http10_request[H11Protocol] tests/protocols/test_http.py::test_root_path[HttpToolsProtocol] tests/protocols/test_http.py::test_root_path[H11Protocol] tests/protocols/test_http.py::test_proxy_headers[HttpToolsProtocol] tests/protocols/test_http.py::test_proxy_headers[H11Protocol] tests/protocols/test_http.py::test_max_concurrency[HttpToolsProtocol] tests/protocols/test_http.py::test_max_concurrency[H11Protocol] tests/protocols/test_http.py::test_shutdown_during_request[HttpToolsProtocol] tests/protocols/test_http.py::test_shutdown_during_request[H11Protocol] tests/protocols/test_http.py::test_shutdown_during_idle[HttpToolsProtocol] tests/protocols/test_http.py::test_shutdown_during_idle[H11Protocol]
uvicorn/protocols/http/httptools_impl.py uvicorn/protocols/http/h11_impl.py
uvicorn/protocols/http/httptools_impl.py uvicorn/protocols/http/h11_impl.py