Index: src/mod/event_handlers/mod_event_socket/mod_event_socket.c
===================================================================
--- src/mod/event_handlers/mod_event_socket/mod_event_socket.c	(revision 5646)
+++ src/mod/event_handlers/mod_event_socket/mod_event_socket.c	(working copy)
@@ -551,7 +551,7 @@
 		switch_size_t rlen, blen;
 		char buf[1024] = "";
 		rlen = strlen(reply);
-		snprintf(buf, sizeof(buf), "Content-Type: api/response\nContent-Length: %" SWITCH_SSIZE_T_FMT "\n\n", rlen);
+		snprintf(buf, sizeof(buf), "Content-Length: %" SWITCH_SSIZE_T_FMT "\nContent-Type: api/response\n\n", rlen);
 		blen = strlen(buf);
 		switch_socket_send(acs->listener->sock, buf, &blen);
 		switch_socket_send(acs->listener->sock, reply, &rlen);
