Lines 24-29
import java.io.StringReader;
Link Here
|
24 |
import java.net.MalformedURLException; |
24 |
import java.net.MalformedURLException; |
25 |
import java.net.URL; |
25 |
import java.net.URL; |
26 |
import java.util.Map; |
26 |
import java.util.Map; |
|
|
27 |
import java.util.ArrayList; |
27 |
|
28 |
|
28 |
import javax.xml.parsers.ParserConfigurationException; |
29 |
import javax.xml.parsers.ParserConfigurationException; |
29 |
import javax.xml.parsers.SAXParser; |
30 |
import javax.xml.parsers.SAXParser; |
Lines 389-394
public class DefaultSamplerCreator extends AbstractSamplerCreator {
Link Here
|
389 |
if (pageEncodings != null) { |
390 |
if (pageEncodings != null) { |
390 |
synchronized (pageEncodings) { |
391 |
synchronized (pageEncodings) { |
391 |
contentEncoding = pageEncodings.get(urlWithoutQuery); |
392 |
contentEncoding = pageEncodings.get(urlWithoutQuery); |
|
|
393 |
if(contentEncoding == null && pageEncodings.size()>0) { |
394 |
contentEncoding = new ArrayList<String>(pageEncodings.values()).get(0); |
395 |
} |
392 |
} |
396 |
} |
393 |
} |
397 |
} |
394 |
// Check if we know the encoding of the form |
398 |
// Check if we know the encoding of the form |