Skip to content

Commit

Permalink
fix: fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Apr 26, 2023
1 parent 38f2d21 commit c229623
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "topgg"
version = "1.0.3"
version = "1.0.4"
edition = "2021"
authors = ["null (https://github.com/null8626)", "Top.gg <[email protected]> (https://top.gg)"]
description = "The official Rust wrapper for the Top.gg API"
Expand All @@ -12,7 +12,7 @@ categories = ["api-bindings", "web-programming::http-client"]
exclude = [".gitattributes", ".gitignore", "rustfmt.toml"]

[dependencies]
cfg-if = "1.0"
cfg-if = "1"
serde = { version = "1", default-features = false, features = ["derive"] }
urlencoding = "2"

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The official Rust SDK for the [Top.gg API](https://docs.top.gg).
Make sure to have a [Top.gg](https://top.gg) API token handy, you can have an API token if you own a listed Discord bot on [Top.gg](https://top.gg) (open the edit page, see in `Webhooks` section) then add the following to your `Cargo.toml`'s dependencies:

```toml
topgg = "1.0"
topgg = "1"
```

## Features
Expand Down Expand Up @@ -156,7 +156,7 @@ In your `Cargo.toml`:

```toml
[dependencies]
topgg = { version = "1.0", features = ["autoposter"] }
topgg = { version = "1", features = ["autoposter"] }
```

In your code:
Expand Down Expand Up @@ -188,7 +188,7 @@ In your `Cargo.toml`:

```toml
[dependencies]
topgg = { version = "1.0", default-features = false, features = ["actix"] }
topgg = { version = "1", default-features = false, features = ["actix"] }
```

In your code:
Expand Down Expand Up @@ -224,7 +224,7 @@ In your `Cargo.toml`:

```toml
[dependencies]
topgg = { version = "1.0", default-features = false, features = ["axum"] }
topgg = { version = "1", default-features = false, features = ["axum"] }
```

In your code:
Expand Down Expand Up @@ -267,7 +267,7 @@ In your `Cargo.toml`:

```toml
[dependencies]
topgg = { version = "1.0", default-features = false, features = ["rocket"] }
topgg = { version = "1", default-features = false, features = ["rocket"] }
```

In your code:
Expand Down Expand Up @@ -303,7 +303,7 @@ In your `Cargo.toml`:

```toml
[dependencies]
topgg = { version = "1.0", default-features = false, features = ["warp"] }
topgg = { version = "1", default-features = false, features = ["warp"] }
```

In your code:
Expand Down
2 changes: 1 addition & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Http {

let payload = format!(
"\
{predicate} /api{path} HTTP/1.1\r\n\
{predicate} /api{path} HTTP/1.0\r\n\
Authorization: Bearer {}\r\n\
Content-Type: application/json\r\n\
Host: top.gg\r\n\
Expand Down

0 comments on commit c229623

Please sign in to comment.