OSDN Git Service

Fix "HttpUrlConnection.addRequestProperty replaces existing properties instead of...
authorElliott Hughes <enh@google.com>
Wed, 24 Feb 2010 00:20:16 +0000 (16:20 -0800)
committerElliott Hughes <enh@google.com>
Wed, 24 Feb 2010 00:20:16 +0000 (16:20 -0800)
commitbe36c19e1a17a0570793fab65d227da58f441570
tree8c192084c179ad3f71161f3f759d0c486ddccadd
parent1ec040a1b09e2fd0143997a32c887a41bfac92d5
Fix "HttpUrlConnection.addRequestProperty replaces existing properties instead of append them".

The bug was actually that the copy constructor wasn't reconstructing the 'props'
list correctly. Upstream has applied the same fix, so I'm also bringing my
earlier change into sync with theirs, whitespace-wise (and removing no longer
necessary 'android-changed' tags).

Bug: http://code.google.com/p/android/issues/detail?id=6722
libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/Header.java
libcore/luni/src/test/java/org/apache/harmony/luni/internal/net/www/protocol/http/HeaderTest.java