Skip to content

Commit 02f40de

Browse files
committed
fix: add content lenght header on dialog server #253
1 parent 76c8f8b commit 02f40de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dialog_server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ func (s *DialogServerSession) TransactionRequest(ctx context.Context, req *sip.R
9595
if req.Via() == nil {
9696
ClientRequestAddVia(c, req)
9797
}
98+
// Makes sure Content-Length is present
99+
if req.Body() == nil {
100+
req.SetBody(nil)
101+
}
98102
return nil
99103
})
100104
}

0 commit comments

Comments
 (0)