summaryrefslogtreecommitdiff
path: root/lang/ruby18-base/patches/patch-bs
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby18-base/patches/patch-bs')
-rw-r--r--lang/ruby18-base/patches/patch-bs34
1 files changed, 0 insertions, 34 deletions
diff --git a/lang/ruby18-base/patches/patch-bs b/lang/ruby18-base/patches/patch-bs
deleted file mode 100644
index 740f03b3503..00000000000
--- a/lang/ruby18-base/patches/patch-bs
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-bs,v 1.1 2005/11/02 08:56:40 taca Exp $
-
---- lib/webrick/cookie.rb.orig 2003-07-24 01:51:36.000000000 +0900
-+++ lib/webrick/cookie.rb
-@@ -76,5 +76,29 @@ module WEBrick
- end
- end
-
-+ def self.parse_set_cookie(str)
-+ cookie_elem = str.split(/;/)
-+ first_elem = cookie_elem.shift
-+ first_elem.strip!
-+ key, value = first_elem.split(/=/, 2)
-+ cookie = new(key, HTTPUtils.dequote(value))
-+ cookie_elem.each{|pair|
-+ pair.strip!
-+ key, value = pair.split(/=/, 2)
-+ if value
-+ value = HTTPUtils.dequote(value.strip)
-+ end
-+ case key.downcase
-+ when "domain" then cookie.domain = value
-+ when "path" then cookie.path = value
-+ when "expires" then cookie.expires = value
-+ when "max-age" then cookie.max_age = Integer(value)
-+ when "comment" then cookie.comment = value
-+ when "version" then cookie.version = Integer(value)
-+ when "secure" then cookie.secure = true
-+ end
-+ }
-+ return cookie
-+ end
- end
- end