Skip to content

Commit 48d8572

Browse files
Properly deserialize ContentType in BridgeService and fix rawParam reference in user guide.
1 parent 09eae93 commit 48d8572

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/guide/protocols/http/parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ public class PerformanceTest {
3737
::: tip
3838
JMeter automatically URL encodes parameters, so you don't need to worry about special characters in parameter names or values.
3939

40-
If you want to use some custom encoding or have an already encoded value that you want to use, then you can use `encodedParam` method instead which does not apply any encoding to the parameter name or value, and send it as is.
40+
If you want to use some custom encoding or have an already encoded value that you want to use, then you can use `rawParam` method instead which does not apply any encoding to the parameter name or value, and send it as is.
4141
:::

jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import java.util.function.Function;
1515
import java.util.stream.Collectors;
1616
import java.util.stream.Stream;
17+
import org.apache.http.entity.ContentType;
1718
import org.yaml.snakeyaml.nodes.MappingNode;
1819
import org.yaml.snakeyaml.nodes.Node;
1920
import org.yaml.snakeyaml.nodes.ScalarNode;
@@ -46,6 +47,7 @@ private static Map<Class<?>, Function<String, Object>> solveParsers() {
4647
ret.put(boolean.class, Boolean::parseBoolean);
4748
ret.put(double.class, Double::parseDouble);
4849
ret.put(Duration.class, Duration::parse);
50+
ret.put(ContentType.class, ContentType::parse);
4951
ret.put(String.class, s -> s);
5052
return ret;
5153
}

0 commit comments

Comments
 (0)