From f90e825da9d505c11b4262c50cd54553f979c300 Mon Sep 17 00:00:00 2001 From: Douglas Wade Date: Thu, 6 Dec 2018 23:24:51 -0800 Subject: [PATCH] docs: response.set(fields) won't overwrites previous header fields(#1282) --- docs/api/response.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/response.md b/docs/api/response.md index 602bc14..bdea105 100644 --- a/docs/api/response.md +++ b/docs/api/response.md @@ -193,6 +193,8 @@ ctx.set({ }); ``` +This delegates to [setHeader](https://nodejs.org/dist/latest/docs/api/http.html#http_request_setheader_name_value) which sets or updates headers by specified keys and doesn't reset the entire header. + ### response.remove(field) Remove header `field`.