Browse Source

METHOD_OTHER is replaced with METHOD_OPTIONS, because the OPTIONS request
is supported by the parser.

Miklos Tirpak 16 năm trước cách đây
mục cha
commit
c1843097af
2 tập tin đã thay đổi với 1 bổ sung6 xóa
  1. 1 3
      modules_s/options/mod_options.c
  2. 0 3
      modules_s/options/mod_options.h

+ 1 - 3
modules_s/options/mod_options.c

@@ -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;
 	}

+ 0 - 3
modules_s/options/mod_options.h

@@ -30,9 +30,6 @@
 #ifndef _MOD_OPTIONS_H
 #define _MOD_OPTIONS_H
 
-#define OPTIONS "OPTIONS"
-#define OPTIONS_LEN (sizeof(OPTIONS) - 1)
-
 #define ACPT_STR "Accept: "
 #define ACPT_STR_LEN (sizeof(ACPT_STR) - 1)