diff options
| author | acdenisSK <[email protected]> | 2017-07-24 01:47:39 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-24 01:51:36 +0200 |
| commit | e72e25cf8b0160a3ec0de0be98dd8f1467d3b505 (patch) | |
| tree | 0509c1cefea9f1fc95a8b50d3f0556becdb16603 /src/http | |
| parent | Also ignore data frame errors (diff) | |
| download | serenity-e72e25cf8b0160a3ec0de0be98dd8f1467d3b505.tar.xz serenity-e72e25cf8b0160a3ec0de0be98dd8f1467d3b505.zip | |
Revert the ignoring of protocol and data frame errors, while actually handling ping pongs
When receiving pings, serenity MUST send the pong with the same data as the ping. Well, as said in the rfc for websockets anyway. Though, regarding the errors, i found out that serenity's gateway wouldn't work, but i do see that i'll have to file an issue to see if they know why are these happening at all
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs index 850f800..71b5885 100644 --- a/src/http/mod.rs +++ b/src/http/mod.rs @@ -295,7 +295,9 @@ pub fn create_permission(channel_id: u64, target_id: u64, map: &Value) -> Result /// Creates a private channel with a user. pub fn create_private_channel(map: &Value) -> Result<PrivateChannel> { + info!("{:?}", map); let body = map.to_string(); + info!("{}", body); let response = request!(Route::UsersMeChannels, post(body), "/users/@me/channels"); |