---
title: "AssertionError: Hop-by-hop headers not allowed"
author: "zhanyingle_1981"
date: "2012-10-16T19:08:16Z"
tags: []
categories: ["编程语言"]
slug: "assertionerror-hop-by-hop-headers-not-allowed"
draft: false
lastmod: "2012-10-16T19:08:16Z"
id: 1699723
url: "https://leonzhan.iteye.com/blog/1699723"
---

```
Traceback (most recent call last):

  File "/Library/Python/2.7/site-packages/django/core/servers/basehttp.py", line 283, in run
    self.result = application(self.environ, self.start_response)

  File "/Library/Python/2.7/site-packages/django/contrib/staticfiles/handlers.py", line 68, in __call__
    return self.application(environ, start_response)

  File "/Library/Python/2.7/site-packages/django/core/handlers/wsgi.py", line 284, in __call__
    start_response(status, response_headers)

  File "/Library/Python/2.7/site-packages/django/core/servers/basehttp.py", line 373, in start_response
    assert not is_hop_by_hop(name),"Hop-by-hop headers not allowed"

AssertionError: Hop-by-hop headers not allowed
```