recalculate authorization after add Content-Type in header

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