diff --git a/examples/http_read.vqe b/examples/http_read.vqe index 149cdaa..9c1b4ab 100644 --- a/examples/http_read.vqe +++ b/examples/http_read.vqe @@ -1,4 +1,3 @@ { "examples/test.html" readall disp - argv shatter dump } ":3333" servehttp diff --git a/examples/webassembly-example/varaq.wasm b/examples/webassembly-example/varaq.wasm index 14f246f..214fbd3 100755 Binary files a/examples/webassembly-example/varaq.wasm and b/examples/webassembly-example/varaq.wasm differ diff --git a/varaq/interpreter.go b/varaq/interpreter.go index 2d7f160..1a5a489 100644 --- a/varaq/interpreter.go +++ b/varaq/interpreter.go @@ -1082,6 +1082,8 @@ func Interpret(code Expr, argv []string, w io.Writer) error { req = append(req, r.RequestURI) req = append(req, string(b)) req = append(req, r.Method) + // maybe should add the headers here + // add the number of arguments for the header err = Interpret(fun, req, w) if err != nil { @@ -1103,7 +1105,7 @@ func Interpret(code Expr, argv []string, w io.Writer) error { } push(Expr{STRING, nil, string(filedata), 0}) case VERSION: - fmt.Fprintf(w, "var'aq -- 0.9.1 Martoq") + fmt.Fprintf(w, "var'aq -- 0.9.2 Martoq") case ARGV: arg := Expr{LIST, make([]Expr, 0), nil, 0} for _, v := range argv {