Closed angerman closed 15 years ago
Here is a very quick fix to make resty accept HTTP 1.0 responses too and make it deal correctly with redirections. (always take the last response code.) Turn
|sed '/^.*HTTP\/1\.1 [0-9][0-9][0-9]/s/.*\([0-9]\)[0-9][0-9].*/\1/p; d')
into
|sed '/^.*HTTP\/1\.[01] [0-9][0-9][0-9]/s/.*\([0-9]\)[0-9][0-9].*/\1/p; d' | tail -n1)
Awesome, thanks! Much better now. Patch applied.
Here is a very quick fix to make resty accept HTTP 1.0 responses too and make it deal correctly with redirections. (always take the last response code.) Turn
into