summary refs log tree commit diff stats
path: root/lib/pure/cookies.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-05-14 01:13:44 +0200
committerAraq <rumpf_a@web.de>2011-05-14 01:13:44 +0200
commit3e9dcc8be5d1286e3647e8f665f456966aa02437 (patch)
tree8bc3b42f28feba6f93c0bd3c386dcb82eabff484 /lib/pure/cookies.nim
parent32241aa9fe1a22f388124a6e5db8fb0517f01789 (diff)
downloadNim-3e9dcc8be5d1286e3647e8f665f456966aa02437.tar.gz
deprecated system.copy: use system.substr instead
Diffstat (limited to 'lib/pure/cookies.nim')
-rwxr-xr-xlib/pure/cookies.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/cookies.nim b/lib/pure/cookies.nim
index eed6c7512..8e5de008c 100755
--- a/lib/pure/cookies.nim
+++ b/lib/pure/cookies.nim
@@ -1,7 +1,7 @@
 #
 #
 #            Nimrod's Runtime Library
-#        (c) Copyright 2010 Andreas Rumpf
+#        (c) Copyright 2011 Andreas Rumpf
 #
 #    See the file "copying.txt", included in this
 #    distribution, for details about the copyright.
@@ -24,7 +24,7 @@ proc parseCookies*(s: string): PStringTable =
     inc(i) # skip '='
     var valstart = i
     while s[i] != ';' and s[i] != '\0': inc(i)
-    result[copy(s, keystart, keyend)] = copy(s, valstart, i-1)
+    result[substr(s, keystart, keyend)] = substr(s, valstart, i-1)
     if s[i] == '\0': break
     inc(i) # skip ';'