diff --git a/src/ecmascript/spidermonkey/xhr.cpp b/src/ecmascript/spidermonkey/xhr.cpp index 305cb414..89cb4163 100644 --- a/src/ecmascript/spidermonkey/xhr.cpp +++ b/src/ecmascript/spidermonkey/xhr.cpp @@ -825,6 +825,7 @@ xhr_send(JSContext *ctx, unsigned int argc, JS::Value *rval) struct string post; if (!init_string(&post)) { mem_free(body); + return false; } add_to_string(&post, "text/plain\n");