finally fixe the flaskr compatibility problem

The cause for flaskr Bad Request is that flaskr do not understand
UPPER CASE CONTENT_TYPE variable.
So maintain the header as is sent. use strcasecmp.