fernandezpablo85/scribe-java — Issue #197: Scribe don't allow access to multivalue header in Response object.
Author: sghinux
Created: 2011-11-23 14:39:01+00:00
State: open

I need to access to "Set-Cookie" headers : with Scribe I can access to only one cookie.
My proposal is change parseHeaders Method :

private Map parseHeaders(HttpURLConnection conn)
/* */ {
/* 47 */ Map headers = new HashMap();
/* 48 */ for (String key : conn.getHeaderFields().keySet())
/* */ {
/* 50 */ headers.put(key, ((List)conn.getHeaderFields().get(key)).toArray());
/* */ }
/* 52 */ return headers;
/* */ }