From 3c6ce60c74c0a56c894fe79fc28e1143f4184326 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Sun, 11 Jul 2010 19:40:27 +0000 Subject: [PATCH] Fix a stupid typo which prevented url redirection working in mythvideo 0.23 and 0.22. Refs #8634 git-svn-id: http://svn.mythtv.org/svn/branches/release-0-22-fixes@25328 7dbf422c-18fa-0310-86e9-fd20926502f2 --- mythplugins/mythvideo/mythvideo/videodlg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mythplugins/mythvideo/mythvideo/videodlg.cpp b/mythplugins/mythvideo/mythvideo/videodlg.cpp index 357dbbcbc1f..226d767db1e 100644 --- a/mythplugins/mythvideo/mythvideo/videodlg.cpp +++ b/mythplugins/mythvideo/mythvideo/videodlg.cpp @@ -133,9 +133,10 @@ namespace public slots: void InspectHeader(const QHttpResponseHeader &header) { - if (header.statusCode() == 302) + if (header.statusCode() == 302 || header.statusCode() == 301 || + header.statusCode() == 307) { - QString m_redirectUrl = header.value("Location"); + m_redirectUrl = header.value("Location"); m_redirectCount++; } else if (header.statusCode() == 404)