diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-10 09:19:54 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-17 14:45:26 +0000 |
commit | 0a42c6aff61142f97b6288b4504357a26ef43855 (patch) | |
tree | e53495bd4e6ea7715ef5f408512944bc54736169 /src/websockets/qwebsockethandshakerequest.cpp | |
parent | 1bbba5b9e8761fabe79a212e221102503fb0ac25 (diff) | |
download | qtwebsockets-0a42c6aff61142f97b6288b4504357a26ef43855.tar.gz |
Fix keyword for Origin
In RFC 6455(v13), the correct keyword is Origin.
Task-number: QTBUG-44310
Change-Id: I009f079e01e213eb232b0dfc1a441305f3d9e588
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/websockets/qwebsockethandshakerequest.cpp')
-rw-r--r-- | src/websockets/qwebsockethandshakerequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsockethandshakerequest.cpp b/src/websockets/qwebsockethandshakerequest.cpp index 2476a81..94d99cd 100644 --- a/src/websockets/qwebsockethandshakerequest.cpp +++ b/src/websockets/qwebsockethandshakerequest.cpp @@ -260,7 +260,7 @@ void QWebSocketHandshakeRequest::readHandshake(QTextStream &textStream) connectionValues << (*c).trimmed(); //optional headers - m_origin = m_headers.value(QStringLiteral("sec-websocket-origin"), QString()); + m_origin = m_headers.value(QStringLiteral("origin"), QString()); const QStringList protocolLines = m_headers.values(QStringLiteral("sec-websocket-protocol")); for (QStringList::const_iterator pl = protocolLines.begin(); pl != protocolLines.end(); ++pl) { QStringList protocols = (*pl).split(QStringLiteral(","), QString::SkipEmptyParts); |