Merge pull request #144 from writeas/fix-api-missing-hostname
Fix missing hostname when publishing via API