[sr-dev] git:master: xhttp: don't set version to http/1.0

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 30 10:41:37 CEST 2010


Module: sip-router
Branch: master
Commit: c16594981087248996381e132e637504a0cac8ef
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c16594981087248996381e132e637504a0cac8ef

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Aug 30 10:40:33 2010 +0200

xhttp: don't set version to http/1.0

- allow http/1.1 in replies

---

 modules/xhttp/xhttp_mod.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/xhttp/xhttp_mod.c b/modules/xhttp/xhttp_mod.c
index 39c168d..48ea2be 100644
--- a/modules/xhttp/xhttp_mod.c
+++ b/modules/xhttp/xhttp_mod.c
@@ -292,8 +292,6 @@ static int xhttp_handler(sip_msg_t* msg)
 		return NONSIP_MSG_PASS;
 	}
 
-	/* we support HTTP/1.0 - fix it for replies */
-	msg->first_line.u.request.version.s[HTTP_VERSION_LEN] = '0';
 	if(xhttp_url_match!=NULL)
 	{
 		c = msg->first_line.u.request.uri.s[msg->first_line.u.request.uri.len];




More information about the sr-dev mailing list