对于GET请求,WSO2 EI 6.6内容类型为空

对于GET请求,WSO2 EI 6.6内容类型为空,wso2,wso2esb,wso2ei,Wso2,Wso2esb,Wso2ei,我在WSO2 EI Integration studio中定义了一个API端点。当我向这个端点发送一个GET请求时,请求的$axis2:ContentType头一进入EI(插入序列的开始)就变为null。是否有办法保存此标头并将其发送出EI。你知道怎么做吗 注意:这不适用于POST请求 API端点 <?xml version="1.0" encoding="UTF-8"?> <api context="/eirouter_tes

我在WSO2 EI Integration studio中定义了一个API端点。当我向这个端点发送一个
GET
请求时,请求的
$axis2:ContentType
头一进入EI(插入序列的开始)就变为null。是否有办法保存此标头并将其发送出EI。你知道怎么做吗

注意:这不适用于
POST
请求

API端点

<?xml version="1.0" encoding="UTF-8"?>
<api context="/eirouter_test" name="eirouter_test" xmlns="http://ws.apache.org/ns/synapse">
    <resource methods="POST GET">
        <inSequence>
            <log level="custom">
                <property expression="$axis2:ContentType" name="original-content-type" />
            </log>
            
            <respond description="Send result to the client"/>
        </inSequence>
        <outSequence />
        <faultSequence />
    </resource>
</api>
EI日志

[2021-06-01 10:54:41,457]  INFO {LogMediator} - {api:eirouter_test} original-content-type = null

简而言之,应该仅为
PUT
POST
请求设置
Content-Type
HTTP头。有一个非常相似的问题:有非常好的解释

这不是WSO2的问题,但这就是HTTP如何处理
内容类型
头的问题

[2021-06-01 10:54:41,457]  INFO {LogMediator} - {api:eirouter_test} original-content-type = null