Should the Content-Type
header be present in an HTTP request or response when there is no payload body?
Is the correct combination of HTTP headers in this case to have no Content-Type
and a Content-Length
of 0, or should the Content-Type
not be present at all when the message lacks a body?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…