mirror of
https://github.com/DefectingCat/rua-list
synced 2025-07-15 08:41:32 +00:00
Add do not handle non-utf8 headers
Update .gitlab-ci.yml file
This commit is contained in:
@ -16,16 +16,22 @@ build:linux-gnu-amd64:
|
||||
|
||||
build:linux-musl-amd64:
|
||||
stage: build
|
||||
image: rust
|
||||
image: sseemayer/rust-musl-builder-mingw:latest
|
||||
script:
|
||||
- rustup target add x86_64-unknown-linux-musl
|
||||
- rustup target add x86_64-unknown-linux-gnu
|
||||
- rustup target add x86_64-pc-windows-gnu
|
||||
- cargo build --target=x86_64-unknown-linux-musl --release
|
||||
artifacts:
|
||||
paths:
|
||||
- target/release/x86_64-unknown-linux-musl/rua-list
|
||||
|
||||
build:windows-amd64:
|
||||
stage: build
|
||||
image: sseemayer/rust-musl-builder-mingw:latest
|
||||
script:
|
||||
- cargo build --target=x86_64-pc-windows-gnu --release
|
||||
artifacts:
|
||||
paths:
|
||||
- target/release/x86_64-pc-windows-gnu/rua-list
|
||||
|
||||
rustdoc:
|
||||
stage: build
|
||||
image: rust
|
||||
|
@ -92,7 +92,7 @@ pub async fn headers_parser(port: usize) {
|
||||
Ok(c) => c,
|
||||
Err(err) => {
|
||||
error!("Failed to read headers {}", err);
|
||||
"".to_owned()
|
||||
return;
|
||||
}
|
||||
};
|
||||
let header: Vec<_> = header.split("\r\n").collect();
|
||||
|
Reference in New Issue
Block a user