Skip to content

Commit

Permalink
added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Nov 10, 2018
1 parent 88179be commit 1e95371
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions masonite/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ def get_headers(self):
return self._compile_headers_to_tuple() + self.get_cookies()

def _compile_headers_to_tuple(self):
"""Compiles the current headers to a list of tuples.
Returns:
list -- A list of tuples.
"""

headers = []
for key, value in self._headers.items():
headers.append((key, value))
Expand Down

0 comments on commit 1e95371

Please sign in to comment.