78cfed1fb0237e6f3e5a7613a79e63a8fb45a795,homeassistant/components/http.py,RequestHandler,_handle_request,#RequestHandler#Any#,176
Before Change
"Error parsing JSON", HTTP_UNPROCESSABLE_ENTITY)
return
self._session = self.get_session()
if self.server.no_password_set:
api_password = self.server.api_password
else:
api_password = self.headers.get(HTTP_HEADER_HA_AUTH)
After Change
if self.server.no_password_set:
_LOGGER.warning("NO PASSWORD SET")
self.authenticated = True
elif HTTP_HEADER_HA_AUTH in self.headers:
api_password = self.headers.get(HTTP_HEADER_HA_AUTH)
if not api_password and DATA_API_PASSWORD in data:
api_password = data[DATA_API_PASSWORD]
self.authenticated = api_password == self.server.api_password
else:
self.authenticated = self.verify_session()
if "_METHOD" in data:
method = data.pop("_METHOD")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: home-assistant/home-assistant
Commit Name: 78cfed1fb0237e6f3e5a7613a79e63a8fb45a795
Time: 2015-11-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/http.py
Class Name: RequestHandler
Method Name: _handle_request
Project Name: virajmavani/semi-auto-image-annotation-tool
Commit Name: fdc5ba0874f3c978d185f86c67f815527f9afa6f
Time: 2018-05-25
Author: vishalscience75@gmail.com
File Name: main.py
Class Name:
Method Name:
Project Name: GPflow/GPflow
Commit Name: f448c24dc7b096a2041b699ce1bcb72cf287144b
Time: 2017-08-29
Author: art.art.v@gmail.com
File Name: GPflow/param.py
Class Name: Param
Method Name: compile