From: David M. Lee Date: Wed, 16 Oct 2013 21:17:24 +0000 (+0000) Subject: Fixed malformed Access-Control-Allow-Methods header. Was causing Safari to barf on... X-Git-Tag: 12.0.0-beta2~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fc343958a8e47809ce45a1fa539521426eac8e9;p=thirdparty%2Fasterisk.git Fixed malformed Access-Control-Allow-Methods header. Was causing Safari to barf on POST and DELETE. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@401106 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_ari.c b/res/res_ari.c index f4eca2e431..d666d8d575 100644 --- a/res/res_ari.c +++ b/res/res_ari.c @@ -441,7 +441,7 @@ static void handle_options(struct stasis_rest_handlers *handler, /* CORS 6.2 #9 - "Add one or more Access-Control-Allow-Methods headers * consisting of (a subset of) the list of methods." */ - ast_str_append(&response->headers, 0, "%s: OPTIONS,%s\r\n", + ast_str_append(&response->headers, 0, "%s: OPTIONS%s\r\n", ACA_METHODS, ast_str_buffer(allow));