mirror of
https://github.com/ChronosX88/yans.git
synced 2024-12-21 22:21:46 +00:00
Add response header for ARTICLE
This commit is contained in:
parent
f868fb8876
commit
f65363ccf8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user