|
@@ -310,9 +310,7 @@ static int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar)
|
|
|
int offset = 0;
|
|
|
int cont_len = 0;
|
|
|
|
|
|
- if ((_msg->REQ_METHOD != METHOD_OTHER) ||
|
|
|
- (_msg->first_line.u.request.method.len != OPTIONS_LEN) ||
|
|
|
- (strncasecmp(_msg->first_line.u.request.method.s, OPTIONS, OPTIONS_LEN) != 0)) {
|
|
|
+ if (_msg->REQ_METHOD != METHOD_OPTIONS) {
|
|
|
LOG(L_ERR, "options_reply(): called for non-OPTIONS request\n");
|
|
|
return 0;
|
|
|
}
|