80d6e9f08f56bb83ba4dcaece54fc71062e85e02,homeassistant/components/http.py,RequestHandler,_handle_request,#RequestHandler#Any#,179

Before Change


                    "Error parsing JSON", HTTP_UNPROCESSABLE_ENTITY)
                return

        self.authenticated = (self.server.api_password is None or
                              self.headers.get(HTTP_HEADER_HA_AUTH) ==
                              self.server.api_password or
                              data.get(DATA_API_PASSWORD) ==
                              self.server.api_password or
                              self.verify_session())

        if "_METHOD" in data:
            method = data.pop("_METHOD")

After Change


                    "Error parsing JSON", HTTP_UNPROCESSABLE_ENTITY)
                return

        if self.verify_session():
            // The user has a valid session already
            self.authenticated = True
        elif self.server.api_password is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 80d6e9f08f56bb83ba4dcaece54fc71062e85e02
Time: 2016-04-11
Author: jshwright@gmail.com
File Name: homeassistant/components/http.py
Class Name: RequestHandler
Method Name: _handle_request


Project Name: home-assistant/home-assistant
Commit Name: 39e3a3c463aabb7ad31011f0725bf92fbaeae648
Time: 2015-12-06
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/http.py
Class Name: RequestHandler
Method Name: _handle_request


Project Name: home-assistant/home-assistant
Commit Name: bb658412c49f16688f4705d9e932733a21b40f54
Time: 2016-03-19
Author: fabian@affolter-engineering.ch
File Name: homeassistant/components/http.py
Class Name: RequestHandler
Method Name: _handle_request