Use both, primarily because of different browsers and intermediate proxies can implement parsing these headers slightly differently and you want to insulate yourself from bugs in either.

View 2 other answers to this question
About · Careers · Privacy · Terms · Contact · Languages · Your Ad Choices · Press ·
© Quora, Inc. 2025