One thing you can try is to try modifying the client, to POST directly to HTTPS.
It sounds like what might be happening right now is that the client is POSTing to a HTTP URL; then flask-sslify receives the HTTP request, responds to the client with a redirect, and triggers the client to re-send the POST request to a HTTPS URL.
You should be able to check whether this is what is happening using, e.g., Firebug or Wireshark or any other tool that lets you view what requests the client is making.
If this is what is happening right, one thing you could try is changing the client so that it POSTs via HTTPS directly. In other words, try to change the client so that the initial POST request is submitted over HTTPS, so that it never goes over HTTP and never triggers a redirect. I would suggest trying this, to see if it makes the problem go away. If it does make the problem go away, it gives some hint about where the problem might lie (maybe the client doesn't handle redirects for POSTs in the way you'd want, or maybe there's an issue in flask-sslify; in any case, it's a giant clue that should help debug the problem).
You can verify whether you were successful in ensuring that the client submits the POST initially over HTTPS in the first place, using the same debugging tools (e.g., Firebug or Wireshark).
Generally speaking, having the client use HTTPS directly (if possible) is better than relying upon server-initiated redirects to redirect the client from HTTP to HTTPS. It'll simplify things, and is also more secure. (If the client sends its initial request over HTTP, and you rely upon a server-initiated redirect, then you will still be vulnerable to man-in-the-middle attacks. If the client's initial request is over HTTPS, then you're not vulnerable to man-in-the-middle attacks.) It's possible that simplifying things like this might cause the bug to go away, and it shouldn't be too difficult to check whether that is indeed the case.
On the other hand, if your client is already POSTing directly to HTTPS (if your client never sends any HTTP request in the first place, and there's no server-side redirect), then I don't have the foggiest idea what's going on.
redirect_to_ssl(), line 52 offlask_sslify.py). I am saying, don't do that: instead of having the client make the request over HTTP and then the server issuing a redirect to HTTPS, have the client make the request over HTTPS in the first place (so that no redirect needs to occur). – D.W. Jan 9 at 17:28