mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-06-16 04:04:56 +02:00
remove content type from vscode object codec (#18)
This commit is contained in:
parent
dbf20885e7
commit
2ed59d3304
1 changed files with 1 additions and 4 deletions
|
|
@ -120,10 +120,7 @@ func (VSCodeObjectCodec) WriteObject(stream io.Writer, obj interface{}) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := fmt.Fprintf(stream, "Content-Length: %d\r\n", len(data)); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := fmt.Fprint(stream, "Content-Type: application/vscode-jsonrpc; charset=utf8\r\n\r\n"); err != nil {
|
||||
if _, err := fmt.Fprintf(stream, "Content-Length: %d\r\n\r\n", len(data)); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := stream.Write(data); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue