[vlc-commits] VLSub: don't pretend to support HTTP 1.1

Rémi Denis-Courmont git at videolan.org
Sun Dec 4 13:37:02 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec  4 14:36:29 2016 +0200| [5c26ad66d4b3b1d3de13ae778161f9ddde25cd59] | committer: Rémi Denis-Courmont

VLSub: don't pretend to support HTTP 1.1

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5c26ad66d4b3b1d3de13ae778161f9ddde25cd59
---

 share/lua/extensions/VLSub.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 16c2736..9111a6b 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1191,7 +1191,7 @@ openSub = {
     local request = "<?xml version='1.0'?>"..dump_xml(reqTable)
     local host, path = parse_url(openSub.conf.url)		
     local header = {
-      "POST "..path.." HTTP/1.1", 
+      "POST "..path.." HTTP/1.0", 
       "Host: "..host, 
       "User-Agent: "..openSub.conf.userAgentHTTP, 
       "Content-Type: text/xml", 
@@ -1847,7 +1847,7 @@ end
 function get(url)
   local host, path = parse_url(url)
   local header = {
-    "GET "..path.." HTTP/1.1", 
+    "GET "..path.." HTTP/1.0", 
     "Host: "..host, 
     "User-Agent: "..openSub.conf.userAgentHTTP,
     "",



More information about the vlc-commits mailing list