recalculate authorization after add Content-Type in header

Fix issue #16, if there is problem, please let me know...
Thank you for your awesome projects