From caae5d47c1d7a479955a3445ff9e7c48de59a168 Mon Sep 17 00:00:00 2001 From: Chuck Hays Date: Wed, 25 Mar 2015 12:59:52 -0700 Subject: [PATCH] Bye request should use POST not GET AppRTCDemo is failing to cleanly exit a room because it sends a GET request to /bye. The request to /bye should be a POST request. Because the /bye request is failing, the room is still marked as "full" and rejoining will fail. BUG= R=tkchin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/47759004 Patch from Chuck Hays . Cr-Commit-Position: refs/heads/master@{#8860} --- talk/examples/objc/AppRTCDemo/ARDAppEngineClient.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/talk/examples/objc/AppRTCDemo/ARDAppEngineClient.m b/talk/examples/objc/AppRTCDemo/ARDAppEngineClient.m index 0f3ad0ac68..760a171503 100644 --- a/talk/examples/objc/AppRTCDemo/ARDAppEngineClient.m +++ b/talk/examples/objc/AppRTCDemo/ARDAppEngineClient.m @@ -141,7 +141,8 @@ static NSInteger const kARDAppEngineClientErrorBadResponse = -1; NSString *urlString = [NSString stringWithFormat:kARDRoomServerLeaveFormat, roomId, clientId]; NSURL *url = [NSURL URLWithString:urlString]; - NSURLRequest *request = [NSURLRequest requestWithURL:url]; + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + request.HTTPMethod = @"POST"; NSURLResponse *response = nil; NSError *error = nil; // We want a synchronous request so that we know that we've left the room on