diff --git a/docs/guide/protocols/http/parameters.md b/docs/guide/protocols/http/parameters.md index 577ca122..b87d6294 100644 --- a/docs/guide/protocols/http/parameters.md +++ b/docs/guide/protocols/http/parameters.md @@ -37,5 +37,5 @@ public class PerformanceTest { ::: tip JMeter automatically URL encodes parameters, so you don't need to worry about special characters in parameter names or values. -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. +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. ::: diff --git a/jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java b/jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java index 9b0f5821..cab22873 100644 --- a/jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java +++ b/jmeter-java-dsl-bridge/src/main/java/us/abstracta/jmeter/javadsl/bridge/serialization/constructs/BridgedObjectConstruct.java @@ -14,6 +14,7 @@ import java.util.function.Function; import java.util.stream.Collectors; import java.util.stream.Stream; +import org.apache.http.entity.ContentType; import org.yaml.snakeyaml.nodes.MappingNode; import org.yaml.snakeyaml.nodes.Node; import org.yaml.snakeyaml.nodes.ScalarNode; @@ -46,6 +47,7 @@ private static Map, Function> solveParsers() { ret.put(boolean.class, Boolean::parseBoolean); ret.put(double.class, Double::parseDouble); ret.put(Duration.class, Duration::parse); + ret.put(ContentType.class, ContentType::parse); ret.put(String.class, s -> s); return ret; }