mortie 7 лет назад
Родитель
Сommit
1b1788dc0e
2 измененных файлов: 2 добавлений и 2 удалений
  1. 1
    1
      index.js
  2. 1
    1
      package.json

+ 1
- 1
index.js Просмотреть файл

@@ -13,7 +13,7 @@ function template(tpml, args) {
}

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

+ 1
- 1
package.json Просмотреть файл

@@ -1,6 +1,6 @@
{
"name": "webframe",
"version": "0.2.0",
"version": "0.2.1",
"description": "Web server.",
"main": "index.js",
"scripts": {

Загрузка…
Отмена
Сохранить