Skip to content

Commit

Permalink
Fix the setting of if_match
Browse files Browse the repository at this point in the history
Fix a single character typo. When setting if_match, the environment
variable HTTP_If_Match should actually be HTTP_If-Match.
  • Loading branch information
gcampbell512 authored and carlgsmith committed Aug 24, 2023
1 parent 456562c commit af825da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fcgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ handle_http (void *arg)
server_name = FCGX_GetParam ("SERVER_ADDR", request->envp);
if_match = FCGX_GetParam ("HTTP_IF_MATCH", request->envp);
if (!if_match)
if_match = FCGX_GetParam ("HTTP_If_Match", request->envp);
if_match = FCGX_GetParam ("HTTP_If-Match", request->envp);
if_none_match = FCGX_GetParam ("HTTP_IF_NONE_MATCH", request->envp);
if (!if_none_match)
if_none_match = FCGX_GetParam ("HTTP_If-None-Match", request->envp);
Expand Down

0 comments on commit af825da

Please sign in to comment.