相关疑难解决方法(0)

什么"WARN无法确定响应主体的内容长度." 意思是如何摆脱它?

自从升级到Rails 3.1后,我在开发日志中看到了这条警告消息:

警告无法确定响应正文的内容长度.设置响应或集的内容长度Response#chunked = true

这是什么意思,我该如何删除它?这是个问题吗?

ruby ruby-on-rails webrick

320
推荐指数
7
解决办法
7万
查看次数

杰基尔没有显示任何内容

我正在使用Jekyll开发一个博客.当我使用命令运行服务器时jekyll,内容不会生成.

在终端出现的内容之下:

WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

的index.html

我使用了默认的Jekyll样板.

layout: default

{% for post in paginator.posts %}
<article>

  <header class="entry-header">
    <h2 class="entry-title"><a href="{{ post.url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a></h2>
  </header>

  <aside class="entry-details">
    <p class="entry-date">Publicado em: <a href="{{ post.url }}">{{ post.date | date: "%d/%m/%y" }}</a></p>
  </aside>

  <div class="entry-content">
      {{ post.content }}
  </div>

</article>
{% endfor %}
Run Code Online (Sandbox Code Playgroud)

post.html

标准也.

layout: default

<article>

  <header class="entry-header">
    <h2 …
Run Code Online (Sandbox Code Playgroud)

ruby jekyll

6
推荐指数
1
解决办法
458
查看次数

标签 统计

ruby ×2

jekyll ×1

ruby-on-rails ×1

webrick ×1