From f65363ccf8a11e5afc24af6f2876e91beacc33dd Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Fri, 15 Apr 2022 02:21:50 +0300 Subject: [PATCH] Add response header for ARTICLE --- internal/server/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/server/handler.go b/internal/server/handler.go index 56f6ee0..cec2794 100644 --- a/internal/server/handler.go +++ b/internal/server/handler.go @@ -514,6 +514,7 @@ func (h *Handler) handleArticle(s *Session, command string, arguments []string, { dw := s.tconn.DotWriter() builder := utils.Builder() + _, err = dw.Write([]byte(protocol.NNTPResponse{Code: 220, Message: fmt.Sprintf("%d %s article", num, a.Header.Get("Message-ID"))}.String() + protocol.CRLF)) for k, v := range a.Header { for _, j := range v { builder = builder.Header(k, j)