dever %!s(int64=4) %!d(string=hai) anos
pai
achega
d84454445b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/dever/config.js

+ 1 - 1
lib/dever/config.js

@@ -16,7 +16,7 @@ const request = {
 	//	请求的参数	
 	data: {},
 	//	设置请求的 header,header 中不能设置 Referer。
-	header: {},
+	header: {'content-type': 'application/x-www-form-urlencoded'},
 	//	(需大写)有效值:OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT	
 	method: "POST",
 	//	json	如果设为json,会尝试对返回的数据做一次 JSON.parse