Skip to content

Commit 91d5643

Browse files
authored
Add files via upload
1 parent 1c81e5b commit 91d5643

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyhp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ def http_response_code(self, response_code=None): # set response cod
312312
self.response_code = [int(response_code), self.response_messages[response_code]]
313313
return old_response_code
314314

315-
316315
def headers_list(self): # list current header
317316
headers = []
318317
for header in self.headers:
@@ -350,7 +349,7 @@ def headers_sent(self): # true if headers already sent
350349
def sent_header(self):
351350
if self.header_callback != None:
352351
header_callback = self.header_callback
353-
self.header_callback = None # to prevent recursion if output occurs
352+
self.header_callback = None # to prevent recursion if output occurs
354353
header_callback() # execute callback if set
355354
self.print("Status: " + str(self.response_code[0]) + " " + self.response_code[1]) # print status code
356355
mistake = True # no content-type header

0 commit comments

Comments
 (0)