WebRTC improvements:
- Return ICE headers for WHIP/WHEP/WISH OPTIONS requests already to help clients that cannot change ICE servers post-SDP-request-generation - Fixes to WebRTC WHIP/WHEP GET param parsing - Added "constant" GET param for forcing constant-rate playback - Use correct syntax for WebRTC Link headers
This commit is contained in:
parent
5f70d387a5
commit
9fd34c95fa
4 changed files with 79 additions and 71 deletions
|
@ -150,7 +150,7 @@ std::string &HTTP::Parser::BuildRequest(){
|
|||
/// \todo Include POST variable handling for vars?
|
||||
std::map<std::string, std::string>::iterator it;
|
||||
if (protocol.size() < 5 || protocol[4] != '/'){protocol = "HTTP/1.0";}
|
||||
if (method != "POST" && vars.size() && url.find('?') == std::string::npos){
|
||||
if (!(method == "POST" && GetHeader("Content-Type") == "application/x-www-form-urlencoded") && vars.size() && url.find('?') == std::string::npos){
|
||||
builder = method + " " + Encodings::URL::encode(url, "/:=@[]") + allVars() + " " + protocol + "\r\n";
|
||||
}else{
|
||||
builder = method + " " + Encodings::URL::encode(url, "/:=@[]") + " " + protocol + "\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue