Skip to content

Commit

Permalink
metrics: broken pipe fix (#210)
Browse files Browse the repository at this point in the history
I think, this fixes my issue #208.
  • Loading branch information
Allineer committed Mar 29, 2020
1 parent ea3b8a4 commit 18a80e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mtprotoproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,7 @@ def make_metrics_pkt(metrics):

pkt_header_list = []
pkt_header_list.append("HTTP/1.1 200 OK")
pkt_header_list.append("Connection: close")
pkt_header_list.append("Content-Length: %d" % len(pkt_body))
pkt_header_list.append("Content-Type: text/plain; version=0.0.4; charset=utf-8")
pkt_header_list.append("Date: %s" % time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime()))
Expand Down

0 comments on commit 18a80e5

Please sign in to comment.