mirror of
https://github.com/simon987/ngx_http_js_challenge_module.git
synced 2025-04-10 14:06:46 +00:00
Pass if GET /favicon.ico
This commit is contained in:
parent
b1c85a625d
commit
2110fff501
@ -350,13 +350,19 @@ static ngx_int_t ngx_http_js_challenge_handler(ngx_http_request_t *r) {
|
||||
int ret = get_cookie(r, &cookie_name, &response);
|
||||
|
||||
if (ret < 0) {
|
||||
return serve_challenge(r, challenge, conf->html, conf->title);
|
||||
//pass if request: "GET /favicon.ico HTTP/1.1"
|
||||
if ( strncmp((char *)r->uri.data,"/favicon.ico",12) != 0){
|
||||
return serve_challenge(r, challenge, conf->html, conf->title);
|
||||
}
|
||||
}
|
||||
|
||||
get_challenge_string(bucket, addr, conf->secret, challenge);
|
||||
|
||||
if (verify_response(response, challenge) != 0) {
|
||||
return serve_challenge(r, challenge, conf->html, conf->title);
|
||||
//pass if request: "GET /favicon.ico HTTP/1.1"
|
||||
if ( strncmp((char *)r->uri.data,"/favicon.ico",12) != 0){
|
||||
return serve_challenge(r, challenge, conf->html, conf->title);
|
||||
}
|
||||
}
|
||||
|
||||
// Fallthrough next handler
|
||||
|
Loading…
x
Reference in New Issue
Block a user