stop sending x-peer-id in peerconnection_server

the comment about why that is not a thing dates from 2013.

BUG=None

Change-Id: I97ec5090fc1acb4361bc8472fe605dafea89aa1d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/183545
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/master@{#32267}
This commit is contained in:
Philipp Hancke 2020-09-07 22:13:42 +02:00 committed by Commit Bot
parent e99c68dd21
commit 0240cf8625
2 changed files with 2 additions and 3 deletions

View File

@ -465,8 +465,7 @@ bool PeerConnectionClient::ParseServerResponse(const std::string& response,
*peer_id = -1;
// See comment in peer_channel.cc for why we use the Pragma header and
// not e.g. "X-Peer-Id".
// See comment in peer_channel.cc for why we use the Pragma header.
GetHeaderValue(response, *eoh, "\r\nPragma: ", peer_id);
return true;

View File

@ -31,7 +31,7 @@ const char DataSocket::kCrossOriginAllowHeaders[] =
"Access-Control-Allow-Methods: POST, GET, OPTIONS\r\n"
"Access-Control-Allow-Headers: Content-Type, "
"Content-Length, Connection, Cache-Control\r\n"
"Access-Control-Expose-Headers: Content-Length, X-Peer-Id\r\n";
"Access-Control-Expose-Headers: Content-Length\r\n";
#if defined(WIN32)
class WinsockInitializer {