diff options
| author | 2023-03-21 19:43:54 -0400 | |
|---|---|---|
| committer | 2023-03-21 19:43:54 -0400 | |
| commit | a578609e53ef14aa71efaca529984ba596a8c7fa (patch) | |
| tree | e79f89c3d3e3c252b1b2177b7dd66645e26e9f3a | |
| parent | janet: initial client version (diff) | |
native: turns out janet has a FILE* type
| -rw-r--r-- | jurl_setopt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jurl_setopt.c b/jurl_setopt.c index 2d336fe..2d22c97 100644 --- a/jurl_setopt.c +++ b/jurl_setopt.c @@ -340,8 +340,7 @@ JANET_CFUN(jurl_setopt) { } break; case JURL_PARAMTYPE_FILE: - // TODO: how to clean up leak? - janet_panic("jurl_setopt: FILE* not implemented"); + curl_easy_setopt(jurl->handle, opt->opt, janet_getjfile(argv, 2)); break; case JURL_PARAMTYPE_SLIST: { // we register the cleanup ahead of time, because... |
