-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marc,

On 5/31/2011 5:27 PM, Marc Boorshtein wrote:
>> 2) Show us your Valve code.  (It is simple, right?)
> 
> Iterator<Attribute> attribs = lastmile.getAttributes().iterator();
>                               while (attribs.hasNext()) {
>                                       Attribute attrib = attribs.next();
>                                               if (this.createHeaders) {
>                                                       logger.info("creating 
> header");
>                                               for (String val : 
> attrib.getValues()) {
>                                                       
> logger.info(attrib.getName() + "=" + val);
>                                                       
> request.addHeader(attrib.getName(), val);
>                                               }
>                                       }

Can you try this:

    request.addHeader(attrib.getName(), val);

    logger.info("After added header: "
              + attrib.getName() + "="
              + request.getHeader(attrib.getName()));

I wonder if the header value is being ignored because the request is
frozen or something like that.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3mSyEACgkQ9CaO5/Lv0PD/AACfZg+IWAsUhL6Rrh0BkqQTaqLO
tKkAoKK0YfmIIBqMY78ZTWnSQJg44mWY
=c/1M
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to