Hi all,
First of all, I hope I'm sending this to the right mailing list. Please
let me know if there's a better place.
I think I have run into a bug in SimpleCall.getRequestHeaders()
(package org.restlet.ext.simple.internal). This method takes the first
header value and ignores the rest. My client includes multiple Accept
header in the request, but the restlet engine only sees the first.
The bug is in this code:
for (String name : names) {
result.add(new Parameter(name, this.request.getValue(name)));
}
This iterates over all header names, but just selects the first value
for each name. This should probably look something like this:
for (String name : names) {
for (String value : this.request.getValues(name)) {
result.add(new Parameter(name, value));
}
}
Please investigate and fix :-)
--
Arjohn Kampman, Senior Software Engineer
Aduna - Semantic Power
www.aduna-software.com
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2414381