From 90f177843bd7699dcdb78f52e023c408f441a822 Mon Sep 17 00:00:00 2001 From: nnposter Date: Wed, 13 Nov 2019 23:39:02 +0000 Subject: [PATCH] Marginally cleaner variant of commit r37751 --- nselib/rtsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/rtsp.lua b/nselib/rtsp.lua index 68a54cc13..cd97229a3 100644 --- a/nselib/rtsp.lua +++ b/nselib/rtsp.lua @@ -80,9 +80,9 @@ Request = { local req = { ("%s %s RTSP/1.0"):format(self.method, self.url), - ("CSeq: %d"):format(self.cseq) + ("CSeq: %d"):format(self.cseq), + table.unpack(self.headers) } - table.move(self.headers, 1, #self.headers, #req + 1, req) table.insert(req, "") table.insert(req, "") return table.concat(req, "\r\n")