Skip to content

Commit

Permalink
Properly deserialize ContentType in BridgeService and fix rawParam re…
Browse files Browse the repository at this point in the history
…ference in user guide.
  • Loading branch information
rabelenda-abstracta committed Mar 13, 2024
1 parent 09eae93 commit 48d8572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/protocols/http/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
:::
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -46,6 +47,7 @@ private static Map<Class<?>, Function<String, Object>> 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;
}
Expand Down

0 comments on commit 48d8572

Please sign in to comment.