From 72a1afc40d0ebd98008468f866a1fef5a37a3499 Mon Sep 17 00:00:00 2001
From: Gavin Hurlbut <gjhurlbu@gmail.com>
Date: Tue, 20 Jul 2010 13:39:19 -0700
Subject: [PATCH] Attempt to fix #8678.
Strip out http://host:port/ from UPnP streaming requests before parsing the
method out.
---
mythtv/libs/libmythupnp/httprequest.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/mythtv/libs/libmythupnp/httprequest.cpp b/mythtv/libs/libmythupnp/httprequest.cpp
index 1086627..b8a6c52 100644
a
|
b
|
bool HTTPRequest::ParseRange( QString sRange, |
1217 | 1217 | |
1218 | 1218 | void HTTPRequest::ExtractMethodFromURL() |
1219 | 1219 | { |
| 1220 | // Strip out leading http://192.168.1.1:6544/ -> / |
| 1221 | // Should fix #8678 |
| 1222 | m_sBaseUrl.replace(QRegExp("^http://.*?/"), "/"); |
1220 | 1223 | QStringList sList = m_sBaseUrl.split('/', QString::SkipEmptyParts); |
1221 | 1224 | |
1222 | 1225 | m_sMethod = ""; |