Skip to content

Commit

Permalink
Merge branch 'dev' into 250824_Improve-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
TracerDS authored Sep 1, 2024
2 parents e7a895c + 45a4ae6 commit ec9f59f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dpp/guild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void from_json(const nlohmann::json& j, guild_member& gm) {
std::string guild_member::get_avatar_url(uint16_t size, const image_type format, bool prefer_animated) const {
if (this->guild_id && this->user_id && !this->avatar.to_string().empty()) {
return utility::cdn_endpoint_url_hash({ i_jpg, i_png, i_webp, i_gif },
"guilds/" + std::to_string(this->guild_id) + "/" + std::to_string(this->user_id), this->avatar.to_string(),
"guilds/" + std::to_string(this->guild_id) + "/users/" + std::to_string(this->user_id) + "/avatars", this->avatar.to_string(),
format, size, prefer_animated, has_animated_guild_avatar());
} else {
return std::string();
Expand Down
2 changes: 1 addition & 1 deletion src/dpp/httpsclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ bool https_client::handle_buffer(std::string &buffer)
case HTTPS_CONTENT:
body += buffer;
buffer.clear();
if (body.length() >= content_length) {
if (content_length == ULLONG_MAX || body.length() >= content_length) {
state = HTTPS_DONE;
this->close();
return false;
Expand Down

0 comments on commit ec9f59f

Please sign in to comment.