better handlign of something.
This commit is contained in:
parent
56cca06199
commit
c5e38f29a1
@ -51,6 +51,8 @@ fn handle_connection(mut stream: TcpStream) {
|
||||
keyfile[0].pop().expect("Not a string").to_string();
|
||||
if api_key == keyfile[0] {
|
||||
response = return_response("200");
|
||||
} else {
|
||||
response = return_response("404");
|
||||
}
|
||||
}
|
||||
stream.write_all(response.as_bytes()).unwrap();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user