Browse Source

fix

master
mortie 7 years ago
parent
commit
1b1788dc0e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      index.js
  2. 1
    1
      package.json

+ 1
- 1
index.js View File

} }


function resJson(obj) { function resJson(obj) {
res.writeHead(200, {
this.writeHead(200, {
"content-type": "application/json" "content-type": "application/json"
}); });
this.end(JSON.stringify(obj)); this.end(JSON.stringify(obj));

+ 1
- 1
package.json View File

{ {
"name": "webframe", "name": "webframe",
"version": "0.2.0",
"version": "0.2.1",
"description": "Web server.", "description": "Web server.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

Loading…
Cancel
Save