|
Patch to perform a case insensitive search on http
header.
|
5c5
< * Copyright (c) 2000 The Apache Software Foundation. All rights
---
> * Copyright (c) 2000 The Apache Software Foundation. All rights
13c13
< * notice, this list of conditions and the following disclaimer.
---
> * notice, this list of conditions and the following disclaimer.
21c21
< * if any, must include the following acknowledgment:
---
> * if any, must include the following acknowledgment:
29c29
< * software without prior written permission. For written
---
> * software without prior written permission. For written
266c266
< }
---
> }
272c272
< headers.put (Constants.HEADER_SOAP_ACTION,
---
> headers.put (Constants.HEADER_SOAP_ACTION,
311,312c311
< // leave the current
< // Note: Header is case-insensitive
---
> // leave the current
314,315c313,314
<
< hdr = getHeaderValue(responseHeaders, "Set-Cookie2");
---
>
> hdr = (String) responseHeaders.get ("Set-Cookie2");
324c323
< hdr = getHeaderValue(responseHeaders, "Set-Cookie");
---
> hdr = (String) responseHeaders.get ("Set-Cookie");
370,386d368
<
< /**
< * Obtain a header value from the table using a case in-sensitive search.
< * @param headers A colletion of headers from the http response
< * @param headerName The name of the header to find
< * @return The header value or null if not found
< */
< private String getHeaderValue(Hashtable headers, String headerName)
< {
< for (Enumeration enum = headers.keys(); enum.hasMoreElements();)
< {
< String key = (String)enum.nextElement();
< if (key.equalsIgnoreCase(headerName))
< return (String)headers.get(key);
< }
< return null;
< }
