diff options
Diffstat (limited to 'examples/http.tm')
| -rw-r--r-- | examples/http.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/http.tm b/examples/http.tm index 0a27ece2..bbec3308 100644 --- a/examples/http.tm +++ b/examples/http.tm @@ -12,9 +12,9 @@ _curl := !@Memory func _send(method:_Method, url:Text, data:Text?, headers=[:Text])->HTTPResponse: chunks := @[:Text] save_chunk := func(chunk:CString, size:Int64, n:Int64): - chunks:insert(inline C ( + chunks:insert(inline C:Text { Text$format("%.*s", $size*$n, $chunk) - ) : Text) + }) return n*size inline C { |
