nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/noise: move ImprovedNoise from the rosetta perlin noise example
[nit.git]
/
lib
/
curl
/
native_curl.nit
diff --git
a/lib/curl/native_curl.nit
b/lib/curl/native_curl.nit
index
4608dbe
..
8fc9ccb
100644
(file)
--- a/
lib/curl/native_curl.nit
+++ b/
lib/curl/native_curl.nit
@@
-17,8
+17,8
@@
# Binding of C libCurl which allow us to interact with network.
module native_curl is pkgconfig "libcurl"
# Binding of C libCurl which allow us to interact with network.
module native_curl is pkgconfig "libcurl"
-intrude import standard::file
-import standard
+intrude import core::file
+import core
in "C header" `{
#include <curl/curl.h>
in "C header" `{
#include <curl/curl.h>
@@
-342,6
+342,7
@@
redef class Collection[E]
assert collectionItemType: self isa Collection[String] else
print "Collection item must be strings."
end
assert collectionItemType: self isa Collection[String] else
print "Collection item must be strings."
end
+ if is_empty then return new CURLSList
var primList = new CURLSList.with_str(self.first)
var is_first = true
for s in self do
var primList = new CURLSList.with_str(self.first)
var is_first = true
for s in self do