Background: The new version of the revised functions are done on the basis of the old version on the same interface, you need compatibility with older versions, so let the front desk encapsulated version version number in the header, client_type the types of clients, according to these two fields judgment the interface logic to go
Reception for local use IP packet test OK, the test environment, do not always take the new branch on the code, print the log parameters found no client_type field, the situation is very strange, the same package locally on the test OK but on the cool ...
Solution: Let IOS encapsulated in the new header field parameters clientType passed together with client_type, found clientType can be acquired, to locate the problem, because the key with "_" sign, then the suspect nginx up to no good
Baidu was the conclusion reached:
nginx default ignores key header underlined ....
Approach:
1: http configuration part of the increase underscores_in_headers on;
2: do not use the underscore key change