query = req.getContent();
req.put(Tract.CONTENT, "");
}
String url = req.get(MojasefConstants.REQUEST_URI);
put(MojasefConstants.REQUEST_SELF, withoutQuery(url));
Fetcher headers = req.getUnderlyingFetcher();
if (headers instanceof Listable) {
Listable<String> listable = (Listable<String>)headers;
Iterator<String> it = listable.list();
while (it.hasNext()) {
String key = it.next();
Object object = headers.getObject(key);
if (object instanceof String) {
String value = (String)object;
if (key.startsWith(HTTPConstants.REQUEST_HEADER)) {
key = key.substring(HTTPConstants.REQUEST_HEADER.length());
}