0

I checked mochiweb response headers, and they are always ordered (descending):

< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< last-modified: Sun, 30 Aug 2015 23:13:04 GMT
< Date: Sun, 30 Aug 2015 23:15:15 GMT
< Content-Type: text/html
< Content-Length: 89

This looks to be because of mochiweb headers are being handled with an erlang gb_tree, which is later converted to a list so it comes ordered.

Is there a way to change this? as this could resolve in problems (sometimes) like here and here

My problem is that I am trying to create a service that replicates some requests and I am using mochiweb for this, but Headers are being ordered so it isn't completely replicating the response correctly.

4

1 回答 1

1

固定在这里:

mochiweb 提交 952087e

在响应中格式化标题是一个问题,而不是在mochiweb_headers.

于 2015-09-01T01:13:43.267 回答