Skip to content

Commit

Permalink
Use proper HTTP method with query in the HTTP protocol connect (#102)
Browse files Browse the repository at this point in the history
* Use proper HTTP method with query in the HTTP protocol connect

* Bump version to 3.0.2

* Update the GHA used to setup Dart
  • Loading branch information
alexandrebouthinon authored Jan 25, 2022
1 parent fca8075 commit 80b2414
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- uses: dart-lang/setup-dart@v1
- uses: ./.github/actions/unit-tests

doc-dead-links:
Expand Down Expand Up @@ -63,5 +63,5 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- uses: dart-lang/setup-dart@v1
- uses: ./.github/actions/dart-doc
4 changes: 2 additions & 2 deletions .github/workflows/push_dev.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- uses: dart-lang/setup-dart@v1
- uses: ./.github/actions/unit-tests

dart-doc:
Expand All @@ -45,7 +45,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- uses: dart-lang/setup-dart@v1
- uses: ./.github/actions/dart-doc

doc-deploy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push_master.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- uses: dart-lang/setup-dart@v1
- uses: ./.github/actions/unit-tests

dart-doc:
Expand All @@ -44,7 +44,7 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- uses: dart-lang/setup-dart@v1
- uses: ./.github/actions/dart-doc

doc-deploy:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocols/http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class HttpProtocol extends KuzzleProtocol {
return;
}

final res = await _ioClient.get(Uri.parse('${uri.toString()}/_query'));
final res = await _ioClient.post(Uri.parse('${uri.toString()}/_query'));
if (res.statusCode == 401 || res.statusCode == 403) {
throw Exception('You must have permission on the _query route.');
}
Expand Down
72 changes: 36 additions & 36 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "22.0.0"
version: "34.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
version: "3.2.0"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.3.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.7.0"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand All @@ -42,42 +42,42 @@ packages:
name: build
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.3"
version: "2.2.1"
built_collection:
dependency: transitive
description:
name: built_collection
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0"
version: "5.1.1"
built_value:
dependency: transitive
description:
name: built_value
url: "https://pub.dartlang.org"
source: hosted
version: "8.0.6"
version: "8.1.4"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
cli_util:
dependency: transitive
description:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0"
version: "0.3.5"
code_builder:
dependency: transitive
description:
name: code_builder
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
version: "4.1.0"
collection:
dependency: transitive
description:
Expand All @@ -91,14 +91,14 @@ packages:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "3.0.1"
coverage:
dependency: "direct dev"
description:
name: coverage
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "1.1.0"
crypto:
dependency: transitive
description:
Expand All @@ -112,7 +112,7 @@ packages:
name: dart_style
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.14"
version: "2.2.1"
file:
dependency: transitive
description:
Expand All @@ -133,21 +133,21 @@ packages:
name: frontend_server_client
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.2"
glob:
dependency: transitive
description:
name: glob
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
version: "2.0.2"
http:
dependency: "direct main"
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.3"
version: "0.13.4"
http_multi_server:
dependency: transitive
description:
Expand All @@ -168,7 +168,7 @@ packages:
name: io
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.3"
js:
dependency: transitive
description:
Expand All @@ -182,35 +182,35 @@ packages:
name: logging
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "1.0.2"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
meta:
dependency: "direct main"
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.4.0"
version: "1.7.0"
mime:
dependency: transitive
description:
name: mime
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.1"
mockito:
dependency: "direct main"
description:
name: mockito
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.10"
version: "5.0.17"
node_preamble:
dependency: transitive
description:
Expand All @@ -224,14 +224,14 @@ packages:
name: package_config
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.2"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
pedantic:
dependency: "direct main"
description:
Expand All @@ -252,14 +252,14 @@ packages:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.0"
shelf:
dependency: transitive
description:
name: shelf
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.4"
version: "1.2.0"
shelf_packages_handler:
dependency: transitive
description:
Expand All @@ -273,7 +273,7 @@ packages:
name: shelf_static
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.1.0"
shelf_web_socket:
dependency: transitive
description:
Expand All @@ -287,7 +287,7 @@ packages:
name: source_gen
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.10+3"
version: "1.2.1"
source_map_stack_trace:
dependency: transitive
description:
Expand All @@ -308,7 +308,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.2"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -343,21 +343,21 @@ packages:
name: test
url: "https://pub.dartlang.org"
source: hosted
version: "1.17.8"
version: "1.20.1"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
version: "0.4.9"
test_core:
dependency: transitive
description:
name: test_core
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.28"
version: "0.4.11"
typed_data:
dependency: transitive
description:
Expand All @@ -371,21 +371,21 @@ packages:
name: uuid
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.4"
version: "3.0.5"
vm_service:
dependency: transitive
description:
name: vm_service
url: "https://pub.dartlang.org"
source: hosted
version: "7.1.0"
version: "8.1.0"
watcher:
dependency: transitive
description:
name: watcher
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.1"
web_socket_channel:
dependency: transitive
description:
Expand All @@ -408,4 +408,4 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: kuzzle
version: 3.0.1
version: 3.0.2
description: A library to interact with kuzzle API. A backend software,
self-hostable and ready to use to power modern cross-platform apps.
homepage: https://github.com/kuzzleio/sdk-dart
Expand Down

0 comments on commit 80b2414

Please sign in to comment.