This is surely, not correct...


 public void addHeader(String name, Object value) {
   Map<String,List<Object>> headers = getHeaders();
   List<Object> values = new ArrayList<Object>();
   if (values == null) {
     values = new ArrayList<Object>();
     headers.put(name, values);
   }
   values.add(value);
 }

I'd suggest that the it should read:

 List<Object> values = headers.get(name); as the 3rd line...


In fact, this would probably explain my previous problem of headers not being returned, as headers never gets anything written to it.

Cheers,

Neale

Reply via email to