summaryrefslogtreecommitdiff
path: root/lib/http
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-25 16:14:38 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-25 16:14:38 -0800
commit52eca667bbd1cf5a929d3f2352c3c1ee8e91625d (patch)
tree63e24e0a4d59688bb25c632d23cccea57209bcfd /lib/http
parent68a437bb6d370781e18ad1b794cc34c21dd5b361 (diff)
downloadmc-52eca667bbd1cf5a929d3f2352c3c1ee8e91625d.tar.gz
Formatting as a state machine.
Diffstat (limited to 'lib/http')
-rw-r--r--lib/http/client.myr2
-rw-r--r--lib/http/url.myr4
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/http/client.myr b/lib/http/client.myr
index 770c233..21ce469 100644
--- a/lib/http/client.myr
+++ b/lib/http/client.myr
@@ -196,7 +196,7 @@ const __init__ = {
var m
m = `Get
- std.fmtinstall(std.typeof(m), fmtmethod, [][:])
+ std.fmtinstall(std.typeof(m), fmtmethod)
}
const readchunkedbody = {s, r
diff --git a/lib/http/url.myr b/lib/http/url.myr
index 038305f..34bf447 100644
--- a/lib/http/url.myr
+++ b/lib/http/url.myr
@@ -12,9 +12,7 @@ const __init__ = {
var u : url#
u = u
- std.fmtinstall(std.typeof(u), urlfmt, [
- ("p", false)
- ][:])
+ std.fmtinstall(std.typeof(u), urlfmt)
}
const urlfmt = {sb, ap, opts