From 722f8e9598a60c870396e2a00164a835e4e485db Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 14 Mar 2022 11:17:06 -0400 Subject: [PATCH] Expand docs. --- src/allmydata/storage/http_server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/allmydata/storage/http_server.py b/src/allmydata/storage/http_server.py index 673800321..0bd9f5dfc 100644 --- a/src/allmydata/storage/http_server.py +++ b/src/allmydata/storage/http_server.py @@ -249,7 +249,10 @@ class HTTPServer(object): def _send_encoded(self, request, data): """ - Return encoded data as the HTTP body response, by default using CBOR. + Return encoded data suitable for writing as the HTTP body response, by + default using CBOR. + + Also sets the appropriate ``Content-Type`` header on the response. """ cbor_mime = "application/cbor" accept_headers = request.requestHeaders.getRawHeaders("accept") or [cbor_mime]