Skip to content

Commit

Permalink
fix session signature
Browse files Browse the repository at this point in the history
  • Loading branch information
crgimenes committed Nov 17, 2024
1 parent 9b9549d commit c19ec2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func mainHandler(w http.ResponseWriter, r *http.Request) {
}

// renew session
sc.Save(w, sid, sd)
sc.Save(w, r, sid, sd)

///////////////////////////////////////////////

Expand Down Expand Up @@ -154,7 +154,7 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
}

// renew session
sc.Save(w, sid, sd)
sc.Save(w, r, sid, sd)

////////////////////////////////////////////////

Expand Down Expand Up @@ -240,7 +240,7 @@ func wsproxyHandler(w http.ResponseWriter, r *http.Request) {
}

// renew session
sc.Save(w, sid, sd)
sc.Save(w, r, sid, sd)

////////////////////////////////////////////////
// TODO: verify client credentials (api-key to send data to websocket)
Expand Down

0 comments on commit c19ec2a

Please sign in to comment.