Send Content-Type even when body is empty
This commit is contained in:
parent
a01fcd360f
commit
544c8a1fa7
1 changed files with 4 additions and 3 deletions
|
@ -303,10 +303,11 @@ Zotero.Server.DataListener.prototype._generateResponse = function(status, conten
|
|||
}
|
||||
}
|
||||
|
||||
if(contentType) {
|
||||
response += "Content-Type: "+contentType+"\r\n";
|
||||
}
|
||||
|
||||
if(body) {
|
||||
if(contentType) {
|
||||
response += "Content-Type: "+contentType+"\r\n";
|
||||
}
|
||||
response += "\r\n"+body;
|
||||
} else {
|
||||
response += "Content-Length: 0\r\n\r\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue