Skip to content

Use inform to send websocket upgrades instead of a regular sending #1279

Use inform to send websocket upgrades instead of a regular sending

Use inform to send websocket upgrades instead of a regular sending #1279

Re-run triggered November 18, 2024 22:40
Status Failure
Total duration 1m 25s
Artifacts

elixir.yml

on: pull_request
Matrix: autobahn / autobahn
Matrix: h2spec / h2spec
Matrix: lint / lint
Matrix: test / test
Fit to window
Zoom out
Zoom in

Annotations

1 error and 8 warnings
lint / lint (1.17.x, 27.x)
Process completed with exit code 2.
pattern_match: lib/bandit/http1/handler.ex#L15
The pattern can never match the type {:error, struct()} | {:ok, _}.
unused_fun: lib/bandit/http1/handler.ex#L39
Function do_websocket_upgrade/2 will never be called.
pattern_match: lib/bandit/pipeline.ex#L44
The pattern can never match the type
pattern_match: lib/bandit/pipeline.ex#L156
The pattern can never match the type {:error, <<_::64, _::size(8)>>}.
no_return: lib/bandit/websocket/handshake.ex#L18
Function do_handshake/3 has no local return.
no_return: lib/bandit/websocket/handshake.ex#L64
Function send_handshake/2 has no local return.
call: lib/bandit/websocket/handshake.ex#L80
The function call inform will not succeed.
invalid_contract: lib/bandit/websocket/handshake.ex#L83
Invalid type specification for function websocket_extension_header.