victory460 opened a new issue, #461:
URL: https://github.com/apache/dubbo-go-pixiu/issues/461

   <!-- Please use this template while reporting a bug and provide as much info 
as possible. Not doing so may result in your bug not being addressed in a 
timely manner. Thanks!
   
   -->
   
   
   **What happened**:
   
   Proxy http to triple,  the response header Content-Type is text/plain.
   
   ```
   $ curl --location --request POST 
'http://localhost:8883/BDTService/org.apache.dubbogo.samples.api.Greeter/SayHello'
 \
   --header 'Content-Type: application/json' \
   --data-raw '{
       "name":"java"
   }' -v
   
   
   *   Trying 127.0.0.1:8883...
   * Connected to localhost (127.0.0.1) port 8883 (#0)
   > POST /BDTService/org.apache.dubbogo.samples.api.Greeter/SayHello HTTP/1.1
   > Host: localhost:8883
   > User-Agent: curl/7.81.0
   > Accept: */*
   > Content-Type: application/json
   > Content-Length: 21
   >
   * Mark bundle as not supporting multiuse
   < HTTP/1.1 200 OK
   < Content-Type: text/plain
   < Date: Tue, 02 Aug 2022 11:30:43 GMT
   < Content-Length: 43
   <
   * Connection #0 to host localhost left intact
   {"name":"Hello java","id":"12345","age":21}
   ```
   
   **What you expected to happen**:
   
   
   Want the response header `Content-Type is application/json`.
   
   **How to reproduce it (as minimally and precisely as possible)**:
   ```
   
   cd samples/dubbogo/simple/
   
   
   ./start.sh prepare triple
   
   # 启动 dubbo server
   ./start.sh startServer triple
   
   # 启动 pixiu 
   
   ./start.sh startPixiu triple
   ```
   
   
   **Anything else we need to know?**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to