How to force the minor message version to be 0 (e.g., HTTP/1.0)?

Asked by joseph jose

Is it possible to compose HTTP/1.0 response and send to back to the client using ecap adapter?
What my intention is, for CONNECT Requests i want to send back HTTP/1.0 response instead of HTTP/1.1.
using statusLine, I am able to change status code and such things of the response to CONNECT request. but couldn't change the HTTP/1.1 to HTTP/1.0.
Is there a way to do it?

Question information

English Edit question
eCAP Edit question
No assignee Edit question
Solved by:
Alex Rousskov
Last query:
Last reply:
Revision history for this message
Best Alex Rousskov (rousskov) said :

The host application (e.g., Squid) may not allow your adapter to control the message version because the host application sets that version itself, just before sending the message out. Such behavior may be considered a host application bug, but I am sure some host application developers would disagree (and it would be difficult to fix anyway).

If your adapter changes the version, but the host application continues to send its own version, then you are probably out of luck, but you may consult with the host application developers.

Please note that the minor version of a CONNECT response message should not really matter in most cases.

Revision history for this message
joseph jose (joevypana) said :

Thanks Alex Rousskov, that solved my question.