aboutsummaryrefslogtreecommitdiff
path: root/stm/pybwlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/pybwlan.c')
-rw-r--r--stm/pybwlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/pybwlan.c b/stm/pybwlan.c
index c078ecfe1..73aa8273f 100644
--- a/stm/pybwlan.c
+++ b/stm/pybwlan.c
@@ -191,7 +191,7 @@ mp_obj_t pyb_wlan_http_get(mp_obj_t host_name, mp_obj_t host_path) {
vstr_add_strn(vstr, buf, ret);
}
- mp_ret = mp_obj_new_str(qstr_from_str_take(vstr_str(vstr)));
+ mp_ret = mp_obj_new_str(qstr_from_str_take(vstr->buf, vstr->alloc));
}
closesocket(sd);