aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-18 14:05:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-18 14:05:44 +0000
commite22fb3e7bc0bdbac45a16667ba726616faa21ccb (patch)
tree56855323374504d6416183daeaa9a1491bf22d6f /java
parent6ea51f3cd7a9c3180967136a2200b8b8a0eaf416 (diff)
works!
Diffstat (limited to 'java')
-rw-r--r--java/javacurl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/javacurl.c b/java/javacurl.c
index 9f3483aae..1623c624d 100644
--- a/java/javacurl.c
+++ b/java/javacurl.c
@@ -82,9 +82,18 @@ JNIEXPORT jint JNICALL Java_CurlGlue_jni_1setopt__III
(JNIEnv *java, jobject myself, jint jcurl, jint option, jint value)
{
void *handle = (void *)((struct javacurl*)jcurl)->libcurl;
+ CURLoption opt = (CURLoption)option;
puts("setopt int + int");
+ switch(opt) {
+ case CURLOPT_FILE:
+ /* silently ignored, we don't need user-specified callback data when
+ we have an object, and besides the CURLOPT_FILE is not exported
+ to the java interface */
+ return 0;
+ }
+
return (jint)curl_easy_setopt(handle, (CURLoption)option, value);
}