thomasw / djproxy

djproxy is a class-based generic view reverse HTTP proxy for Django.
MIT License
42 stars 15 forks source link

bug in HttpProxy.__init__ #24

Closed pauk-slon closed 7 years ago

pauk-slon commented 7 years ago

Take look at a call of the base class' constructor here.

class HttpProxy(View):
    ...
    def __init__(self, *args, **kwargs):
        return super(View, self).__init__(*args, **kwargs)

It must be return super(HttpProxy, self).__init__(*args, **kwargs).

thomasw commented 7 years ago

Yikes. Thanks for the report. I'll ship a new version today.