Skip to content

Commit

Permalink
add channel support 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Novak committed Mar 5, 2024
1 parent 44fd3b8 commit ef64e4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ fn main() -> Result<(), Error> {
);
let req = Request::from_client();

let channel = &req.get_header_str("FANOUT").unwrap_or("test");


// Request is a stream request - from client, or from fanout
if req.get_path().starts_with("/stream/") {
return Ok(if req.get_header_str("Grip-Sig").is_some() {
// Request is from Fanout

let channel = &req.get_header_str("FANOUT").unwrap_or("test");

handle_fanout(req, channel).send_to_client();
} else {
Expand Down

0 comments on commit ef64e4b

Please sign in to comment.