test_server.sync_server(); let client = reqwest::blocking::Client::builder() .brotli(false) .build() .unwrap(); let response = client .get( test_server .url() .join(format!("/content/{inscription}",).as_ref()) .unwrap(), ) .send() .unwrap(); assert_eq!(response.status(), StatusCode::NOT_ACCEPTABLE); assert_regex_match!( response.text().unwrap(), "inscription content type `br` is not acceptable" ); let client = reqwest::blocking::Client::builder() .brotli(true) .build() .unwrap(); let response = client .get( test_server .url() .join(format!("/content/{inscription}",).as_ref()) .unwrap(), ) .send() .unwrap(); assert_eq!(response.status(), StatusCode::OK); assert_eq!(response.bytes().unwrap().deref(), [0; 350_000]); } #[test] fn inscriptions_are_not_compressed_if_no_space_is_saved_by_compression() { let rpc_server = test_bitcoincore_rpc::spawn(); rpc_server.mine_blocks(1);