Skip to content

Commit

Permalink
Fix for #37? I'm not really sure where else I"m missing linefeeds, ht…
Browse files Browse the repository at this point in the history
…tp_get looked fine...
  • Loading branch information
Fitblip committed Oct 13, 2012
1 parent 560abeb commit bbf566f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requests/http_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
s_block_end()

s_repeat("cookie", max_reps=5000, step=500)
s_static("\r\n")
s_static("\r\n\r\n")

########################################################################################################################
# Fuzz Date header
Expand Down
9 changes: 5 additions & 4 deletions requests/http_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
s_static("\r\n")
s_static("Content-Length: ")
s_size("post blob", format="ascii", signed=True, fuzzable=True)
s_static("\r\n\r\n")

s_static("\r\n")
if s_block_start("post blob"):
s_string("A"*100 + "=" + "B"*100)
s_block_end()
s_static("\r\n\r\n")

########################################################################################################################
# Fuzz POST request MIMETypes
Expand All @@ -69,7 +69,8 @@
s_static("\r\n")
s_static("Content-Length: ")
s_size("post blob", format="ascii", signed=True, fuzzable=True)
s_static("\r\n\r\n")
s_static("\r\n")
if s_block_start("post blob"):
s_string("A"*100 + "=" + "B"*100)
s_block_end()
s_block_end()
s_static("\r\n\r\n")

0 comments on commit bbf566f

Please sign in to comment.