Commit 845d751e authored by Marko Mikulicic's avatar Marko Mikulicic Committed by rojer

Fix C String API confusion

    PUBLISHED_FROM=af34acd81d877bfbd8441c14451d8c81f18c207d
parent 518a7f8a
......@@ -1962,7 +1962,7 @@ static v7_val_t mg_send_js(struct v7 *v7) {
size_t len = 0;
if (v7_is_string(arg1)) {
const char *data = v7_to_string(v7, &arg1, &len);
const char *data = v7_get_string_data(v7, &arg1, &len);
mg_send(c, data, len);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment