...
This commit is contained in:
@@ -158,5 +158,5 @@ pub fn decode_request_generic[T](data string) !RequestGeneric[T] {
|
||||
// Returns:
|
||||
// - A JSON string representation of the RequestGeneric object
|
||||
pub fn (req RequestGeneric[T]) encode[T]() string {
|
||||
return json2.encode_pretty(req).replace('\\/', '/')
|
||||
return json2.encode(req)
|
||||
}
|
||||
|
||||
@@ -77,11 +77,9 @@ pub fn (mut t UnixSocketTransport) send(request string, params SendParams) !stri
|
||||
}
|
||||
// Append the newly read data to the total response
|
||||
res_total << res[..n]
|
||||
if n < 8192 {
|
||||
// console.print_debug('No more data to read, breaking loop after ${n} bytes')
|
||||
// TODO: this seems weird
|
||||
break
|
||||
}
|
||||
|
||||
//here we need to check we are at end
|
||||
|
||||
}
|
||||
unix.shutdown(socket.sock.handle)
|
||||
socket.close() or {}
|
||||
|
||||
Reference in New Issue
Block a user