Skip to content

Commit

Permalink
Translate: separate header and body correctly, per RFC 2616 (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Oct 29, 2022
1 parent 09ea481 commit c6f5c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/Translate.awk
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function getResponse(text, sl, tl, hl,
if (HttpAuthUser && HttpAuthPass)
# TODO: digest auth
header = header "Proxy-Authorization: Basic " HttpAuthCredentials "\r\n"
header = header "\r\n" # separate header and body correctly, per RFC 2616

content = NULLSTR; isBody = 0
while (1) {
Expand Down Expand Up @@ -189,6 +190,7 @@ function postResponse(text, sl, tl, hl, type,
if (HttpAuthUser && HttpAuthPass)
# TODO: digest auth
header = header "Proxy-Authorization: Basic " HttpAuthCredentials "\r\n"
header = header "\r\n" # separate header and body correctly, per RFC 2616

content = NULLSTR; isBody = 0
while (1) {
Expand Down

0 comments on commit c6f5c65

Please sign in to comment.