aboutsummaryrefslogtreecommitdiff
path: root/examples/http
diff options
context:
space:
mode:
Diffstat (limited to 'examples/http')
-rw-r--r--examples/http/http.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/http/http.tm b/examples/http/http.tm
index 39cbfd6d..29727e6e 100644
--- a/examples/http/http.tm
+++ b/examples/http/http.tm
@@ -8,7 +8,7 @@ struct HTTPResponse(code:Int, body:Text)
enum _Method(GET, POST, PUT, PATCH, DELETE)
func _send(method:_Method, url:Text, data:Text?, headers:[Text]=[] -> HTTPResponse)
- chunks : @[Text] = @[]
+ chunks : @[Text]
save_chunk := func(chunk:CString, size:Int64, n:Int64)
chunks.insert(inline C:Text {
Text$format("%.*s", _$size*_$n, _$chunk)