Skip to content

Commit

Permalink
fix: Upgrading to Graylog 2.5.x - Protecting against CSRF, HTTP heade…
Browse files Browse the repository at this point in the history
…r required
  • Loading branch information
cdumay committed Jan 15, 2019
1 parent c985265 commit 9509f29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
3 changes: 2 additions & 1 deletion src/flask_graylog_bundle/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def client(self):
server=self.app.config['GRAYLOG_API_URL'],
username=self.app.config['GRAYLOG_API_USERNAME'],
password=self.app.config['GRAYLOG_API_PASSWORD'],
timeout=self.app.config.get("GRAYLOG_API_TIMEOUT", 10)
timeout=self.app.config.get("GRAYLOG_API_TIMEOUT", 10),
headers={"X-Requested-By": "flask-graylog-bundle"}
)

return self._client
Expand Down

0 comments on commit 9509f29

Please sign in to comment.