Package: libruby1.9
Version: 1.9.0.0-2
Severity: normal
Tags: patch
These might apply to 1.8 also.
--- /tmp/http.rb 2008-01-16 21:35:38.000000000 -0800
+++ /usr/lib/ruby/1.9.0/net/http.rb 2008-01-16 21:32:20.000000000 -0800
@@ -1237,11 +1237,12 @@
# Sets the header field corresponding to the case-insensitive key.
def []=(key, val)
- unless val
+ if val
+ @header[key.downcase] = [val]
+ else
@header.delete key.downcase
- return val
end
- @header[key.downcase] = [val]
+ return val
end
# [Ruby 1.8.3]
@@ -1521,7 +1522,7 @@
private :encode_kvpair
def urlencode(str)
- str.gsub(/[^a-zA-Z0-9_\.\-]/n) {|s| sprintf('%%%02x', s[0]) }
+ str.gsub(/[^a-zA-Z0-9_\.\-]/n) {|s| sprintf('%%%02x', s[0].ord) }
end
private :urlencode
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.23.12 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages libruby1.9 depends on:
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libncurses5 5.6+20080105-1 Shared libraries for terminal hand
ii zlib1g 1:1.2.3.3.dfsg-8 compression library - runtime
libruby1.9 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]