Make bad xml-rpc methods return xml error message rather than http error message, fixing #108
This commit is contained in:
parent
80f7c87567
commit
88999e7d49
|
@ -30,6 +30,7 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
|
@ -313,7 +313,7 @@ void xml_handle(WS_CONNINFO *pwsc) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ws_returnerror(pwsc,500,"Invalid method");
|
xml_return_error(pwsc,500,"Invalid method");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue