Update http.js

This commit is contained in:
Namhyeon Go 2022-06-08 18:15:05 +09:00 committed by GitHub
parent d5d5971ff1
commit 5e83f7180e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,9 +181,11 @@ var HTTPObject = function(engine) {
switch (key.toUpperCase()) { switch (key.toUpperCase()) {
case "CONTENT-TYPE": case "CONTENT-TYPE":
console.warn("Will be forget the previous CONTENT-TYPE");
this.setContentType(value.toLowerCase()); this.setContentType(value.toLowerCase());
break; break;
case "COOKIE": case "COOKIE":
console.warn("Will be forget the previous COOKIE");
this.setCookie(value); this.setCookie(value);
break; break;
default: default: