Commit b6cccfc
committed
Fix port syntax in host header of HTTP requests.
When constructing a host header, if PORT is an integer, add it to the
header, otherwise omit it.
The previous behavior resulted in host headers like
"www.example.com:NIL", which failed on S3 but (confusingly) worked on
CloudFront.1 parent 9d68870 commit b6cccfc
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
0 commit comments