在API上的“post”方法获取“org.glassfish.jersey.message.internal.HeaderValueException”错误

问题描述 投票:-1回答:1

我得到的例外是

org.glassfish.jersey.message.internal.HeaderValueException:“Content-Type”标头值太多:“[application / json,application / json]”

当我收到此错误时,我正在传递内容类型='application / x-www-form-urlencoded'的请求。当我尝试不传递内容类型时,我仍然得到相同的异常。

cucumber bdd rest-assured web-api-testing karate
1个回答
1
投票

请使用最新的空手道版本,你应该能够解决这个问题:https://github.com/intuit/karate

© www.soinside.com 2019 - 2024. All rights reserved.