This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I don't understand why I have only "first value", where is the "second value" ?
If I do a "response.setHeader("myHeader", "third value") after the addHeader(), the setHeader() overrides the value and it's normal but why addHeader doesn't work ?.
What's wrong with this code ?
Note that request and response headers are different. What you're setting/adding are response headers, whereas headerValues is part of the request - so they're two completely different sets of headers.
Update: Which, I now see, you just figured out :-)