Adapting server to get date from the headers