Author: sebb
Date: Tue Nov 20 00:07:03 2012
New Revision: 1411484
URL: http://svn.apache.org/viewvc?rev=1411484&view=rev
Log:
Move comment to correct location
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=1411484&r1=1411483&r2=1411484&view=diff
==============================================================================
---
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
(original)
+++
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Tue Nov 20 00:07:03 2012
@@ -1388,13 +1388,13 @@ public abstract class HTTPSamplerBase ex
int redirect;
for (redirect = 0; redirect < MAX_REDIRECTS; redirect++) {
boolean invalidRedirectUrl = false;
- // Browsers seem to tolerate Location headers with spaces,
- // replacing them automatically with %20. We want to emulate
- // this behaviour.
String location = lastRes.getRedirectLocation();
if (REMOVESLASHDOTDOT) {
location = ConversionUtils.removeSlashDotDot(location);
}
+ // Browsers seem to tolerate Location headers with spaces,
+ // replacing them automatically with %20. We want to emulate
+ // this behaviour.
location = encodeSpaces(location);
try {
lastRes =
sample(ConversionUtils.makeRelativeURL(lastRes.getURL(), location),
HTTPConstants.GET, true, frameDepth);