Today's puzzle
Find the bug.
Identify the language, then pick the buggy line and write its fix.
LANG?LINE?FIX?0/6
Exhibit A · ?.??
1[HttpGet("/api/session")]
2[Authorize]
3public IActionResult GetSession() {
4 var userId = Request.Cookies["user_id"];
5 if (userId == null) return Unauthorized();
6 return Ok(new { userId });
7}
$ identify language
scripting
compiled
query
Keep going