Add travis ci config file
Avoid NPE on head requests which don't have content