zoukankan      html  css  js  c++  java
  • _http_outgoing.js错误

      1)_http_outgoing.js:314  

    _http_outgoing.js:314
    throw new TypeError(
    ^

    TypeError: Header name must be a valid HTTP Token ["Content-Type"]
    at storeHeader (_http_outgoing.js:314:11)
    at ServerResponse.OutgoingMessage._storeHeader (_http_outgoing.js:228:9)
    at ServerResponse.writeHead (_http_server.js:221:8)
    at Server.<anonymous> (E: odejshttp_modules.js:5:6)
    at emitTwo (events.js:106:13)
    at Server.emit (events.js:191:7)
    at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:546:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)

    出现这个错误,检查一下Content-Type有没有拼写性低级错误。

     

    2)_http_outgoing.js:351

    http_server版本低,升级http_server的命令行指令: npm update -g http_server

  • 相关阅读:
    java socket
    eclipse汉化包
    Java中的Integer和int
    linux安装docker
    linux安装maven及配置
    zookeeper入门001
    java-jvm类加载-001笔记
    jvm类加载
    Java中的<< 和 >> 和 >>> 介绍
    linux安装mysql5.7.27
  • 原文地址:https://www.cnblogs.com/synchronize/p/6550975.html
Copyright © 2011-2022 走看看