Skip to content

Commit

Permalink
potential fix to the bug im having
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranmcguinness authored Jan 31, 2025
1 parent b91bbad commit 1069e51
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion vlib/net/http/response.v
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,21 @@ pub fn (resp Response) bytestr() string {

// Parse a raw HTTP response into a Response object
pub fn parse_response(resp string) !Response {
version, status_code, status_msg := parse_status_line(resp.all_before('\r\n'))!
sline := resp.all_before('\r\n')
mut version := ""
mut status_code := ""
mut status_msg := ""
//this may be a hack, but it means i can get free completions from ai.hackclub.com
//fix sites that send malformed responses with leading newlines
if sline.len != 0{
version, status_code, status_msg = parse_status_line(sline)!

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / toml-module-pass-external-test-suites

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / toml-module-pass-external-test-suites

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / toml-module-pass-external-test-suites

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / toml-module-pass-external-test-suites

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / test-regression

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / test-regression

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / test-regression

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / test-regression

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / macos (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / macos (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / macos (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / macos (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-doom (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-doom (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-doom (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-doom (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / tools-docker-ubuntu-musl

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / tools-docker-ubuntu-musl

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / tools-docker-ubuntu-musl

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / tools-docker-ubuntu-musl

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (ubuntu-22.04, v_linux.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (ubuntu-22.04, v_linux.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (ubuntu-22.04, v_linux.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (ubuntu-22.04, v_linux.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vab-compiles-v-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vab-compiles-v-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vab-compiles-v-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vab-compiles-v-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-os-android

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-os-android

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-os-android

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-os-android

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / clang (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-14, v_macos_arm64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-14, v_macos_arm64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-14, v_macos_arm64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-14, v_macos_arm64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (msvc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (msvc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (msvc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (msvc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / websocket_tests

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-13, v_macos_x86_64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-13, v_macos_x86_64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-13, v_macos_x86_64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-13, v_macos_x86_64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-sdl-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-module-docs

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-module-docs

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-module-docs

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-module-docs

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-puzzle-vibes

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-puzzle-vibes

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-puzzle-vibes

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-puzzle-vibes

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / gg-regressions

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / gg-regressions

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / gg-regressions

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / gg-regressions

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / check-markdown

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / check-markdown

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / check-markdown

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / check-markdown

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / check-markdown

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / misc-tooling

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / misc-tooling

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / misc-tooling

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / misc-tooling

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 45 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`
} else{
for line in resp.split("\r\n"){
if line.len != 0{
version, status_code, status_msg = parse_status_line(line)!

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / toml-module-pass-external-test-suites

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / toml-module-pass-external-test-suites

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / toml-module-pass-external-test-suites

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / test-regression

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / test-regression

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / test-regression

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vpm-site (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / macos (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / macos (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / macos (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-doom (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-doom (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-doom (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (clang)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / linux (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / tools-docker-ubuntu-musl

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / tools-docker-ubuntu-musl

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / tools-docker-ubuntu-musl

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (ubuntu-22.04, v_linux.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (ubuntu-22.04, v_linux.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (ubuntu-22.04, v_linux.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vab-compiles-v-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vab-compiles-v-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vab-compiles-v-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-os-android

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-os-android

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-os-android

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / clang (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-14, v_macos_arm64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-14, v_macos_arm64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-14, v_macos_arm64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (tcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (gcc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (msvc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (msvc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / windows (msvc)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / websocket_tests

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-13, v_macos_x86_64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-13, v_macos_x86_64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-up-works-nix (macos-13, v_macos_x86_64.zip)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-sdl-examples

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-module-docs

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-module-docs

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / build-module-docs

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vsl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (ubuntu-20.04)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / vtl (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-puzzle-vibes

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-puzzle-vibes

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / v-compiles-puzzle-vibes

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / gg-regressions

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / gg-regressions

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / gg-regressions

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (macos-14)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / misc-tooling

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / misc-tooling

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / misc-tooling

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`

Check failure on line 49 in vlib/net/http/response.v

View workflow job for this annotation

GitHub Actions / common (ubuntu-latest)

cannot assign to `status_code`: expected `string`, not `int`
}
}
}
// Build resp header map and separate the body
start_idx, end_idx := find_headers_range(resp)!
header := parse_headers(resp.substr(start_idx, end_idx))!
Expand Down

0 comments on commit 1069e51

Please sign in to comment.