From ec0091bd73ec2ff6afa1a4c4581756caa04fa82d Mon Sep 17 00:00:00 2001 From: Bung Date: Wed, 3 May 2023 15:37:05 +0800 Subject: [PATCH] ci --- .github/workflows/action.yml | 2 +- src/scorper/http/httpcore.nim | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index f4c472c..68cb02b 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -19,7 +19,7 @@ jobs: - ubuntu-latest - windows-latest - macOS-latest - experimental: [false] + nim-version: - 1.6.0 - stable diff --git a/src/scorper/http/httpcore.nim b/src/scorper/http/httpcore.nim index cc58bd2..00b5be9 100644 --- a/src/scorper/http/httpcore.nim +++ b/src/scorper/http/httpcore.nim @@ -286,19 +286,19 @@ func `==`*(a, b: HttpCode): bool {.borrow.} func is2xx*(code: HttpCode): bool {.inline.} = ## Determines whether ``code`` is a 2xx HTTP status code. - code.int in {200 .. 299} + code.int in 200 .. 299 func is3xx*(code: HttpCode): bool {.inline.} = ## Determines whether ``code`` is a 3xx HTTP status code. - code.int in {300 .. 399} + code.int in 300 .. 399 func is4xx*(code: HttpCode): bool {.inline.} = ## Determines whether ``code`` is a 4xx HTTP status code. - code.int in {400 .. 499} + code.int in 400 .. 499 func is5xx*(code: HttpCode): bool {.inline.} = ## Determines whether ``code`` is a 5xx HTTP status code. - code.int in {500 .. 599} + code.int in 500 .. 599 func `$`*(httpMethod: HttpMethod): string = return (system.`$`(httpMethod))[4 .. ^1].toUpperAscii()