Fix NPE with cookies and headers processing
Merge pull request #818 from excilys/817_NPE_RestClient

Fix NPE with cookies and headers processing