-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
I currently have replace httpurlconnection to feign-okhttp in my projects. I use the following edition:
io.github.openfeign
feign-okhttp
9.6.0
but I got a problem when I post this url: "http://gclife-platform-service:20000/v1/user/login/log?userId=ea9dd2f707a54b11b03193c35b2ad3a4&error=SUCCESS"
The log from server side as following:
Received [1.1
cache-control: no-cache
postman-token: 8814eadd-5bb1-4cac-b072-8d608763ad01
devicechannel: gclife_agent_app
language: EN_US
ostype: Android
user-agent: PostmanRuntime/6.3.2
accept: /
x-forwarded-host: 192.168.2.32:13000
x-forwarded-proto: http
x-forwarded-prefix: /app
host: 192.168.2.32:13000
x-forwarded-port: 13000
x-forwarded-for: 192.168.2.35
accept-encoding: gzip
connection: Keep-Alive
Content-Type: application/json
Content-Length: 212
{"deviceChannel":"gclife_agent_app","osType":"Android","deviceId":null,"appVersion":null,"district":null,"language":"EN_US","phoneModel":null,"osVersion":null,"coordiate":null,"networkType":null,"ipAddress":null}]
But "Received [1.1" should be: "Received [POST v1/user/login/log?userId=ea9dd2f707a54b11b03193c35b2ad3a4&error=SUCCESS HTTP/1.1 "
So this caused the parse problem.
"2018-05-05 10:10:04.076 DEBUG 6525 --- [io-20000-exec-9] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens"
How can I get the correct log? Can you have this fixed?